diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/led.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -32,7 +32,7 @@ defined(__BOARD_arduino10000__) || defined(__BOARD_arduinoUno__) || \ defined(__BOARD_hhd70dongle__) || defined(__BOARD_rda1846dongle__) || defined(__BOARD_culV3__) || \ defined(__BOARD_slowpandongle1__) || defined(__BOARD_slowpandongle2__) || defined(__BOARD_teenstep__) || \ - defined(__BOARD_rhmixxx__) + defined(__BOARD_rhmixxx__) || defined(__BOARD_digispark__) #define NUM_LEDS 1 #else #define NUM_LEDS 0 @@ -97,6 +97,12 @@ #define LED_PINNUM 0 #endif +#if defined(__BOARD_digispark__) +#define LED_PORT PORTB +#define LED_DDR DDRB +#define LED_PINNUM 1 +#endif + void led_init(void) { #if NUM_LEDS >= 1 |