Car/Peripheral/Inc/led.h

18 lines
256 B
C

#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);
// duty in [0, 255]
void LED_SetDuty(uint8_t r, uint8_t g, uint8_t b);
#endif