X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=atreus.rkt;h=62ed11850f158f37e267ab83aa344138b0dd5602;hb=d240e6d81824ac93f9bc4525738bb6805b6e4111;hp=563eaf794fec0af9e284bf7f5850c685e27b1b05;hpb=7260ac99ec6e7bf454572d5ccaaeb5d42179c6d3;p=atreides.git diff --git a/atreus.rkt b/atreus.rkt index 563eaf7..62ed118 100644 --- a/atreus.rkt +++ b/atreus.rkt @@ -175,7 +175,11 @@ [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)))) @@ -240,7 +244,7 @@ (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")