change to teensy3.2

This commit is contained in:
interfisch 2020-12-05 18:20:57 +01:00
parent ded8839f4a
commit b5886f0919
2 changed files with 21 additions and 3 deletions

View File

@ -13,5 +13,20 @@ platform = espressif8266
board = d1_mini
framework = arduino
build_flags =
-D PIN_DATA=D5
lib_deps =
fastled/FastLED
fastled/FastLED
[env:teensy31]
platform = teensy
board = teensy31
framework = arduino
build_flags =
-D USB_SERIAL_HID
-D PIN_DATA=0
lib_deps =
fastled/FastLED

View File

@ -19,6 +19,8 @@
*
*/
//Upload for teensy4.1 with: pio run --environment teensy41 -t upload
#define SK6812RGBW //power consumption is around 51mA per LED at RGBW 100%
/*
R=1234mA (with 112 LEDS 100%)
@ -46,13 +48,14 @@ const uint8_t
#endif
#define PIN_DATA D5 // led data output pin2
//#define PIN_DATA D5 // led data output pin2
// #define PIN_CLOCK 7 // led data clock pin (uncomment if you're using a 4-wire LED type)
// --- Serial Settings
const unsigned long
//SerialSpeed = 115200; // serial port speed
SerialSpeed = 500000; // serial port speed
SerialSpeed = 256000; // serial port speed
const uint16_t
SerialTimeout = 60*10; // time before LEDs are shut off if no data (in seconds), 0 to disable