You are on page 1of 1

    


on start

set strip to NeoPixel at pin P1 with 1 leds as RGB (GRB format)

 set vypinac to 0

show number vypinac on button A pressed

set vypinac to 1

 forever

if vypinac = 1 then
show number vypinac

strip show color red


pause (ms) 200

strip show color blue


on button B pressed
pause (ms) 200
set vypinac to 0
else

 strip show color black


show number vypinac

 0



     

You might also like