top of page
Make the USER LED twinkle like a star. This program uses the rand command to generate a random color which is then used to set the color of the USER LED on the front of the JackBord.
Program
---
Twinkle Star Program
Make the USER LED twinkle like a star.
---
prog_vars =
d/color 0
prog_vars.
prog_start =
print "Twinkle Star Program."
prog_start.
prog_loop =
-- Get a new random color
rand 0 15 -> /color
-- Set USER LED to the color
l1 /color
prog_loop.
prog_stop =
print "Exit Twinkle"
prog_stop.
bottom of page