Open coderbyheart opened 1 week ago
Tip: Look at the LED implementation of ATv2 in NCS 1.5 (pre-CAF)
1.5 is the last release without CAF. led_module
The scheduling functionality to queue led patterns is a part of NCS 1.6.0+ so there will have to be mix
This is typically how you can queue up led patterns.
transition_list_clear();
transition_list_append(LED_STATE_CLOUD_PUBLISHING, 5);
transition_list_append(LED_STATE_ACTIVE_MODE, 5);
transition_list_append(LED_STATE_GNSS_SEARCHING, HOLD_FOREVER);
k_work_reschedule(&led_pattern_update_work, K_NO_WAIT);
https://github.com/nrfconnect/sdk-nrf/tree/v1.5-branch/applications/asset_tracker_v2/src/led This is how we can set led patterns, files needed are included in these files
Added the state diagram.
LED state diagram
Source: https://miro.com/app/board/uXjVPN9ZHeQ=/?moveToWidget=3458764593923387145&cot=14