From d5884599750843a3dc6d2edc9ae615ea40b81043 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 19 Sep 2015 14:51:39 +0200 Subject: removed useless timer init in arduino stub --- usb-fastled/Makefile | 1 + usb-fastled/usb-fastled.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'usb-fastled') 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 -- cgit v1.2.3