The RevPi Compact has three LEDs: one of them indicates the device status, two of them can be used freely. The free LEDs can be controlled by the status byte RevPiLED as follows:
LED |
Signal |
Meaning |
---|---|---|
Power |
green |
RevPi Core running |
red |
The piControl driver resets, the modules connected to the PiBridge are reinitialized. |
|
A1 |
off |
In the “RevPiLED” byte, bits 0 and 1 are set to 0. |
green |
In the “RevPiLED” byte, bit 0 is set to 1 and the bit 1 is set to 0. |
|
red |
In the “RevPiLED” byte, bit 0 is set to 0 and the bit 1 is set to 1. |
|
orange |
In the “RevPiLED” byte, bits 0 and 1 are set to 1. |
|
A2 |
off |
In the “RevPiLED” byte, bits 2 and 3 are set to 0. |
green |
In the “RevPiLED” byte, bit 2 is set to 1 and bit 3 is set to 0. |
|
red |
In the “RevPiLED” byte, bit 2 is set to 0 and bit 3 is set to 1. |
|
orange |
In the “RevPiLED” byte, bits 2 and 3 are set to 1. |
In the section “How to Use Status Bytes” we explain how this basically works.
Alternatively you can control the LEDs without using piControl. Here you can see how this works.