summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/led.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/led.c b/lib/led.c
index d6e57d0..1ba512b 100644
--- a/lib/led.c
+++ b/lib/led.c
@@ -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