summaryrefslogtreecommitdiff
path: root/usb-fastled
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-09-19 14:51:39 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-09-19 14:51:39 +0200
commitd5884599750843a3dc6d2edc9ae615ea40b81043 (patch)
treeae4b32153c1d05ae458cbb3f371f6df41eac7456 /usb-fastled
parentadd compatibility support for arduion-stub as teensy (diff)
removed useless timer init in arduino stub
Diffstat (limited to 'usb-fastled')
-rw-r--r--usb-fastled/Makefile1
-rw-r--r--usb-fastled/usb-fastled.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/usb-fastled/Makefile b/usb-fastled/Makefile
index 03d2c7e..1905b35 100644
--- a/usb-fastled/Makefile
+++ b/usb-fastled/Makefile
@@ -31,6 +31,7 @@ RESET_FUNC := $(SPREADAVR_PATH)/tools/reset_lufa_cdc
RESET_PARAM := '!'
FASTLED_PATH := $(SPREADAVR_PATH)/contrib/FastLED
+FASTLED_OPTS := -DCORE_TEENSY
LUFA_PATH := $(SPREADAVR_PATH)/contrib/lufa-LUFA-140928
LUFA_OPTS = -D USB_DEVICE_ONLY
diff --git a/usb-fastled/usb-fastled.cpp b/usb-fastled/usb-fastled.cpp
index 429e8f5..06e1cfc 100644
--- a/usb-fastled/usb-fastled.cpp
+++ b/usb-fastled/usb-fastled.cpp
@@ -37,12 +37,12 @@
// How many leds in your strip?
-#define NUM_LEDS 30
+#define NUM_LEDS 8
// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
-#define DATA_PIN 3 // PD0 @ Atmega32U4
+#define DATA_PIN 23 // PD5 @ Atmega32U4
#define CLOCK_PIN 2 // PD1 @ Atmega32U4
// Define the array of leds