Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ led_blink_leds()

int led_blink_leds ( float led0_brightness,
float led1_brightness,
float led2_brightness,
int32_t on_ms,
int32_t off_ms )

#include <applications/gesture_recognition/src/hw_modules/led/led.h>

Blink LED channels 0..2 with specific brightness.

Note
This function uses sleep internally and should not be called from ISR context.
Parameters
led0_brightnessLED0 (red on RGB boards) brightness in range 0 - 1
led1_brightnessLED1 (green on RGB boards) brightness in range 0 - 1
led2_brightnessLED2 (blue on RGB boards) brightness in range 0 - 1
on_msRGB LED turns on time in milliseconds
off_msRGB LED turns off time in milliseconds
Returns
Operation status, 0 for success