avr-firmwares/drivers/led.c

11 lines
148 B
C
Raw Normal View History

2018-01-28 20:40:50 +01:00
#include "led.h"
#include <avr/io.h>
void led(uint8_t on) {
if (on) {
LED_PORT |= (1 << LED_PIN);
} else {
LED_PORT &= ~(1 << LED_PIN);
}
}