OLIMEX© 2015
MOD-RGB firmware note
The format of the standard I2C message follows the pattern:
S |AAAAAAA|W/R|ACK| |DDDDDDDD|ACK| |DDDDDDDD|ACK| |DDDDDDDD|ACK|...... |P
, where
S – Start condition (automatically sent)
AAAAAAA – Olimex Address –
0x20
W/R – read or write – 0
ACK – acknowledge
DDDDD – DATA to transmit
ACK – acknowledge
DDDDD – DATA to transmit
…... - the address of the device
P – command to perform and its parameters
After that we pass the command and its parameters if there are any.
For example:
1/
0x20 0x01
- Enable LED PWM;
2/
0x20 0x02
- Disable LED PWM;
3/
0x20 0x03 255 0 0
– set the first LED in 255, the second and third in
0
– RED color;
4/
0x20 0x14
– enable the input signal from the audio-in connector;
5/
0x20 0x15
– disable the input signal from the audio-in connector;
6/
0x20 0x20
– return the ID of the board;
7/
0x20 0xF0 0x55
– change the default address from
0xF0
to
0x55
To enter the address before entering a command you need to close DMX_EN jumper, enter the
command to change the address (
0xF0
) and then remove the jumper.
Page 5 of 5