Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 422 Bytes
; basic analogue to digital convertor phatIO demo
; see http://www.phatio.com/ideas/basic_adc#scheduledread
; copy this file to PHATIO/io/run.lio on your phatIO device
;
; define memorable constants for the photo sensor and potentiomter
(defconst light 0)
(defconst pot 16)
(pinmode light ADC) ; set bot pins to ADC inputs
(pinmode pot ADC)
(every 1000
(keyboard "p: " (getpin pot) ", l: " (getpin light) "\n")
)