it can be a status indicator or serve as an ornament. It can change the color and brightness level
can be controlled sequentially as an addressable LED strip
LED indexing goes from 0 to ((number of LEDs) - 1)
component name - led
methods:
local rainbows = 1 --the number of rainbows on the strip
local colors = require("colors")
local leds = getComponent("led")
local count = leds.getStripLength()
function callback_loop()
local offset = getUptime() / 8
for i = 0, count - 1 do
leds.setColor(i, sm.color.new(colors.hsvToRgb((((i * rainbows) - offset) / (count - 1)) % 1, 1, 1)))
end
end