Car/Peripheral/Inc/led.h

18 lines
256 B
C
Raw Permalink Normal View History

2024-07-11 18:07:17 +08:00
#ifndef __LED_H
#define __LED_H
#include "main.h"
#define LED_R 1
#define LED_G 2
#define LED_B 4
#define LED_ALL 7
void LED_Start(uint8_t led);
void LED_Stop(uint8_t led);
2024-07-12 21:17:48 +08:00
// duty in [0, 255]
2024-07-11 18:07:17 +08:00
void LED_SetDuty(uint8_t r, uint8_t g, uint8_t b);
#endif