This section demonstrates how to add a new event to a module and handle it in another. In this example, you add events to the UART Power Control module to notify the system when VBUS is connected or disconnected on the Thingy:91 X. The main module subscribes to these events and requests specific LED patterns from the LED module in response:
- When VBUS is connected, the LED blinks white rapidly.
- When VBUS is disconnected, the LED blinks purple slowly.