Files
@ 10c03b9c67e6
Branch filter:
Location: HydroBot/hydrobot-sharedlibs/inc/led.h - annotation
10c03b9c67e6
701 B
text/plain
Added protocol save settings function
a6d6bff160f8 a6d6bff160f8 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 021012fc2f31 021012fc2f31 021012fc2f31 6f05f30b23be 6f05f30b23be 6f05f30b23be 6f05f30b23be 021012fc2f31 6f05f30b23be 021012fc2f31 8b77baddb5ab 8b77baddb5ab 6f05f30b23be a6d6bff160f8 | #ifndef _LED_H_
#define _LED_H_
#include "stm32f0xx_hal.h"
#include <stdbool.h>
#include <string.h>
typedef enum {
LED_STATUS = 0,
LED_CAN,
LED_ERROR,
} led_name_t;
void led_init(void);
void led_blink(led_name_t led, uint16_t period);
void led_stop(led_name_t led);
void led_blink_once(led_name_t led, uint16_t period);
void led_update(led_name_t led);
void led_update_all(void);
void led_set(led_name_t led, bool value);
void led_toggle(led_name_t led);
bool led_set_brightness(uint8_t brightness);
bool gpio_set_led_brightness(uint8_t brightness);
bool gpio_set_led(led_name_t led, bool value);
bool gpio_toggle_led(led_name_t led);
#endif /* _LED_H_ */
|