(layer F.SilkS) (width 0.381))
(pad 0 np_thru_hole circle (at 0 0) (size 3.9878 3.9878)
(drill 3.9878)) ; switch hole, no copper
- (pad 0 thru_hole circle (at -5.08 0) (size 1.7018 1.7018)
+ (pad 0 np_thru_hole circle (at -5.08 0) (size 1.7018 1.7018)
(drill 1.7018)) ; board-mount hole, no copper
- (pad 0 thru_hole circle (at 5.08 0) (size 1.7018 1.7018)
+ (pad 0 np_thru_hole circle (at 5.08 0) (size 1.7018 1.7018)
(drill 1.7018)) ; board-mount hole, no copper
(pad 1 thru_hole circle (at 2.54 -5.08) (size 2.286 2.286) (drill 1.4986)
(layers *.Cu *.SilkS *.Mask) ,net-pos)
[diode-net `(net ,(+ 16 diode)
,(string->symbol (format "N-diode-~s" diode)))]
[column-net `(net ,(+ net-col 5)
- ,(string->symbol (format "N-col-~s" net-col)))])
+ ,(string->symbol (format "N-col-~s" net-col)))]
+ ;; rotate middle keys additional 90° after calculating position
+ [rotation (cond [(= 5 col) 80]
+ [(= 6 col) 280]
+ [true rotation])])
(switch-module x′ y′ rotation label
(if left? diode-net column-net)
(if left? column-net diode-net))))
(for ([f board])
(pretty-print f op 1))
(display (call-with-input-file "traces.rktd"
- (curry read-string 99999)) op)
+ (curry read-string 999999)) op)
(display ")" op))))
(write-placement "/tmp/atreus.kicad_pcb")