Skip to content

Instantly share code, notes, and snippets.

@geoffrasb
Created March 22, 2012 10:09
Show Gist options
  • Select an option

  • Save geoffrasb/2157538 to your computer and use it in GitHub Desktop.

Select an option

Save geoffrasb/2157538 to your computer and use it in GitHub Desktop.
Hardware lab in lisp
(defun pin (atm)
(cond
((eql atm 'CA) 'P6);seg14 display
((eql atm 'CB) 'N4) ((eql atm 'CC) 'V5) ((eql atm 'CD) 'T5) ((eql atm 'CE) 'U7)
((eql atm 'CF) 'R3) ((eql atm 'CG1) 'N5) ((eql atm 'CG2) 'R5) ((eql atm 'CH) 'T3) ((eql atm 'CJ) 'T3)
((eql atm 'CK) 'V4) ((eql atm 'CL) 'V7) ((eql atm 'CM) 'R7) ((eql atm 'CN) 'T7) ((eql atm 'DP) 'U5)
((eql atm 'S1) 'N3);push button
((eql atm 'S2) 'P4) ((eql atm 'S3) 'P3) ((eql atm 'S4) 'L6) ((eql atm 'S5) 'M5)
((eql atm 'S6) 'U2) ((eql atm 'S7) 'U1) ((eql atm 'S8) 'T2)
((eql atm 'D1) 'K4);LED
((eql atm 'D2) 'K3) ((eql atm 'D3) 'L5) ((eql atm 'D4) 'K5) ((eql atm 'D5) 'H4) ((eql atm 'D6) 'H3)
((eql atm 'D7) 'L7) ((eql atm 'D8) 'K6) ((eql atm 'D9) 'G3) ((eql atm 'D10) 'G1) ((eql atm 'D11) 'J7)
((eql atm 'D12) 'L6) ((eql atm 'D13) 'F2) ((eql atm 'D14) 'F1) ((eql atm 'D15) 'H6) ((eql atm 'D16) 'H5)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment