Firmware-811 Function-078

From I-CubeX Wiki
Jump to: navigation, search

SEERGB (78, 4Eh)

The SeeRGB function enables control of the SeeRGB actuator in both host and stand-alone mode. The following methods can be selected using the FUNCTION command’s method/parameter FP:

SeeRGB v1.0

FP Actuator effect name Actuator effect sequence
0 terminate end current actuator effect sequence immediately
1 default startup eeprom script; can be reprogrammed white→red→green→blue→off
2 RGB red→green→blue
3 white flash white→off
4 red flash red→off
5 green flash green→off
6 blue flash blue→off
7 cyan flash cyan→off
8 magenta flash magenta→off
9 yellow flash yellow→off
10 black off
11 hue cycle red→yellow→green→cyan→blue→purple
12 mood light random hue→random hue
13 virtual candle random yellows
14 water reflections random blues
15 old neon random orangeish reds
16 the seasons spring colors→summer→fall→winter
17 thunderstorm random blues & purples→white flashes
18 stop light red→green→yellow
19 morse code S.O.S in white

Example:

In order to use the SeeRGB function to have a SeeRGB actuator with I2C device address 9 (default SeeRGB I2C device address) connected to the 7th I2C port execute method 12 (mood light actuator effect), the following message is sent:

240, 125, 0 {DEV}, 8 {FUNCTION}, 6 {input}, 9 {device address}, 78 {SeeRGB function}, 12 {mood light actuator method}, 247 (F0h, 7Dh, 00h, 08h, 06h, 09h, 4Eh, 0Ch, F7h)

In order to turn off the current SeeRGB function, the following message is sent:

240, 125, 0 {DEV}, 8 {FUNCTION}, 6 {input}, 9 {device address}, 78 {SeeRGB function}, 0 (terminate actuator method), 247 (F0h, 7Dh, 00h, 08h, 06h, 09h, 4Eh, 00h, F7h)

Other settings of the SeeRGB actuator can be effectuated by using I2C commands such as I2C WRITE and I2C READ. See also the datasheet linked from the SeeRGB web page. For instance, to set the color to red, the following message is sent:

240, 125, 0 {DEV}, 124 (I2C WRITE SINGLE), 6 {input}, 9 {device address}, 6 (first nibble of command 'n', ie. 'Go to RGB Color Now'), 14 (second nibble of command 'n'), 15 (first nibble of red value), 15 (second nibble of red value), 0 (first nibble of green value), 0 (second nibble of green value), 0 (first nibble of blue value), 0 (second nibble of blue value), 247 (F0h, 7Dh, 00h, 7Ch, 06h, 09h, 6Eh, FFh, 00h, 00h, F7h)