Skip to main content

Circuitscript

Electronic schematics in code

Get Started

An alternative to GUIs

Circuitscript aims to provide an alternative way to capture schematics using code instead of graphical user-interfaces (GUIs).

Design with code

Create and reason about schematics using just code and get all the benefits of coding tools.

Output formats

Generate KiCAD schematics to use in KiCAD layout.

Example

In the following example, circuitscript is transformed into an SVG image.

import lib

v3v3 = supply("3V3")   # create 3V3 supply
gnd = dgnd()           # create gnd

at v3v3
wire down 100 right 100
add res(100)
wire right 100 down 100
add led("green")

wire down 100
to gnd

3V312R110012D1greenGND