Pad
pad
is a JITX statement that defines a pad in a pcb-landpattern
. A pad is a thing you can associate with a component pin.
Syntax
pad a : square-pad at loc(0.0, 0.0)
pad p[0] : smd-pad(0.5, 0.5) at loc(5.0, 0.0)
val prefix = Ref("RP")
pad (prefix)[4] : bga-pad(1.0) at loc(1.0, 0.0)
Description
pad a : square-pad at loc(0.0, 0.0)
Create a pad named a
of type square-pad
and place it at (x,y) = (0.0, 0.0). loc
is a pose object for defining pad locations.
pad p[0] : {smd-pad(0.5, 0.5)} at loc(5.0, 0.0)
Create a pad named p[0]
using the parameteric smd-pad
function, and place it at (x,y) = (5.0, 0.0)
val prefix = Ref("RP")
pad (prefix)[4] : bga-pad(1.0) at loc(1.0, 0.0)
Define a custom prefix for your pad name, then use it to create a pad named RP[4]
using the parameteric bga-pad
function, and place it at (x,y) = (1.0, 0.0). The Ref
function casts the String to a Ref
object that can be used as a name in JITX. This strategy is used to generate names for BGA land pattern pads.