Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By Mmiscool
#39198 Unfortunately gpio 0 and 2 are already mapped to 0 and 2. In order to avoid pin conflicts the neo pixles are controlled with a different pin.

You can compile from source and change the pin number used by the neopixels but I have not managed to figure out a way to set this dynamically in the interpreter.
User avatar
By drhaitch
#39931 Or for Australian time with 60 neopixels.

Code: Select alltimer 1000 [show.clock.hands]
timesetup(11,0)
wait

[show.clock.hands]
lcdcls
lcdprint  time()

h = time(hour)
if h > 12 then h = h - 12
h = h - 1
h = h * 5
m = time(min)
m = m - 1

s = time(sec)
s = s - 1
neocls()
neo(h,0,50,0)
neo(m,0,0,50)
neo(s,50,0,0)
wait