...
The red Arduino Adaptershield uses LEDs to show the started industrial protocol as well as protocol specific encoded LED behaviours. Refering to most of the available Evaluations Kits for the SoM, the available LEDs are controlled by an GPIO Expander addressed via the well-known I2C.
Preparing
...
with goal_maLedSet
...
(…)
Each LED is controlled by two bits, according to the documentation of the IO Expander CAT9532-D.
...
Code Block |
---|
irj45_setLedState(m_ledState, GOAL_MA_LED_PROFINET, GOAL_TRUE); |
Setting
...
with plat_ledSet(…)
After storing the LED states, uGOAL will set these values via I2C. The first byte ledState[0]
contains the starting address 0b 0110
(LED 0-3 Selector) and the AUTO-INCREMENT FLAG, 0x 16
. Afterwards the following three bytes corresponds to LED 0-3, LED 4-7 and LED 8-11.
...