Firmware-733 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. There are the following methods to select, 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..100 HSB color set to a color, where FP 1..100 is used to set the hue
101 default startup eeprom script; can be reprogrammed white→red→green→blue→off
102 RGB red→green→blue
103 white flash white→off
104 red flash red→off
105 green flash green→off
106 blue flash blue→off
107 cyan flash cyan→off
108 magenta flash magenta→off
109 yellow flash yellow→off
110 black off
111 hue cycle red→yellow→green→cyan→blue→purple
112 mood light random hue→random hue
113 virtual candle random yellows
114 water reflections random blues
115 old neon random orangeish reds
116 the seasons spring colors→summer→fall→winter
117 thunderstorm random blues & purples→white flashes
118 stop light red→green→yellow
119 morse code S.O.S in white
120..123 random HSB color switch to a random HSB color, where a higher FP value corresponds to a larger random change each time the command is executed
124..127 random HSB color fade fade slowly to random HSB color, where a higher FP value corresponds to a larger random change each time the command is executed

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 112 (mood light actuator effect), the following message is sent:

240, 125, 0 {DEV}, 8 {FUNCTION}, 6 {yyy = 6}, 9 {device address}, 78 {SeeRGB function}, 112 {actuator method}, 247 (F0h, 7Dh, 00h, 08h, 06h, 09h, 4Eh, 0Ch, 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.