Function rc_led_blink#
Defined in File led.h
Function Documentation#
-
int rc_led_blink(rc_led_t led, float hz, float duration)#
blinks an led at specified frequency and duration.
This is a blocking function call, it does not return until either the specified duration has completed or rc_led_stop_blink has been called from another thread.
- Parameters:
led – [in] rc_led_t enum
hz – [in] blink frequency in HZ
duration – [in] blink duration in seconds
- Returns:
0 on success, -1 on error, 1 if function exited prematurely.