This program displays the standard colors on the TOPs smart RGB LED starting at 0 and ending at 15. This demo is part of the video "Using the TOPs Smart EGB LED".
Program
---
TOP Smart RGB LED Demo 1
This program displays the standard colors on the TOPs smart RGB
LED starting at 0 and ending at 15.
This demo is part of the video "Using the TOPs Smart EGB LED".
---
prog_vars =
d/led_color 0
prog_vars.
prog_start =
pclear
sledn 1
print "Smart RGB Demo 1: Start"
prog_start.
prog_loop =
-- main program loop
-- display the color
sled 1 /led_color
-- Wait a quarter of a second.
d250
-- Increment /led_color to the next color
inc /led_color
-- Check if we are done
any /led_color > 15 -> exitprog
prog_loop.
prog_stop =
print "Bye"
prog_stop.