point block
point block
This keyword creates a reference at the current location where the point block is first declared. When at point or to point are executed within the point block, the location of the point will be used.
Example:
from std import *
v5v = supply("5V")
gnd = dgnd()
at v5v
wire down 100
add res(360)
wire down 100
point:
at v5v
wire down 100
add res(360)
wire down 100
branch:
wire left 500
to point
wire down 100
add res(360)
wire down 200
to gnd
at point
wire right 1000 down 100
add res(360)
wire down 200
to gnd
wire down 100
add led("red") pin 2
wire down 100
to gnd
If at point or to point are called within an inner block, then the location of the nearest point: block will be used.
warning
The usage of the point block is very similar to the point keyword, but have slightly different usage.