import unit
rgb3 = unit.get(unit.RGB, unit.PORTA)
# set 1-3 rgb in first RGB unit
rgb3.setColor(1, 0xffffff)
rgb3.setColor(2, 0xffffff)
rgb3.setColor(3, 0xffffff)
# set 4-6 rgb in second RGB unit
rgb3.setColor(4, 0xffffff)
rgb3.setColor(5, 0xffffff)
rgb3.setColor(6, 0xffffff)
# if you have three or more RGB unit,
# you can use 7, 8, 9 as the number
D
Best posts made by dawncold
-
[Solution] connect 2 RGB unit
-
Does anybody try to convert Atom S3 as a keyboard?
I found somebody want the usb-hid support, and esp32 does not support well for usb-hid, but esp32-s3 should support that native, is there any document for usb-hid?