diff --git a/platforms/platformio.lpc804.ini b/platforms/platformio.lpc804.ini new file mode 100644 index 0000000..71b8931 --- /dev/null +++ b/platforms/platformio.lpc804.ini @@ -0,0 +1,26 @@ +; PlatformIO Project Configuration File +; +; Bare NXP LPC804M101 (no dev-kit-specific pin mapping). +; Cortex-M0+ @ 15 MHz, 4 KB SRAM / 32 KB Flash. +; +; IMPORTANT: at 15 MHz the bit-bang clockless driver does NOT meet WS2812 +; protocol timing. To drive WS2812-class LEDs from an LPC804 you must opt +; into the PLU (Programmable Logic Unit) fast path +; (clockless_arm_lpc_plu.h) by uncommenting -DFASTLED_LPC_PLU below. The +; PLU synthesizes the bitstream in the chip's 26-LUT hardware fabric. +; +; The platform package is NOT in the upstream PlatformIO registry. We use +; the zackees/platform-nxplpc-arduino fork (adds the Arduino framework +; binding via ArduinoCore-LPC8xx). The SHA below is pinned to match +; FastLED master's own platformio.ini. + +[env:lpc804] +platform = https://github.com/zackees/platform-nxplpc-arduino.git#2ee527ae80de98e9105329a7260edb003289dfda +board = lpc804 +framework = arduino + +build_flags = + ; -DFASTLED_LPC_PLU ; uncomment for WS2812-class LED output + +lib_deps = + FastLED diff --git a/platforms/platformio.lpc845.ini b/platforms/platformio.lpc845.ini new file mode 100644 index 0000000..3c07091 --- /dev/null +++ b/platforms/platformio.lpc845.ini @@ -0,0 +1,21 @@ +; PlatformIO Project Configuration File +; +; Bare NXP LPC845M301 (no dev-kit-specific pin mapping). +; Cortex-M0+ @ 24 MHz, 16 KB SRAM / 64 KB Flash. +; +; FastLED uses the bit-bang clockless driver (clockless_arm_lpc.h / +; m0clockless_c.h) by default. For the SCT+DMA fast path see the +; lpc845brk env (-DFASTLED_LPC_PWM_DMA=1). +; +; The platform package is NOT in the upstream PlatformIO registry. We use +; the zackees/platform-nxplpc-arduino fork (adds the Arduino framework +; binding via ArduinoCore-LPC8xx). The SHA below is pinned to match +; FastLED master's own platformio.ini. + +[env:lpc845] +platform = https://github.com/zackees/platform-nxplpc-arduino.git#2ee527ae80de98e9105329a7260edb003289dfda +board = lpc845 +framework = arduino + +lib_deps = + FastLED diff --git a/platforms/platformio.lpc845brk.ini b/platforms/platformio.lpc845brk.ini new file mode 100644 index 0000000..23d0c15 --- /dev/null +++ b/platforms/platformio.lpc845brk.ini @@ -0,0 +1,24 @@ +; PlatformIO Project Configuration File +; +; NXP LPC845-BRK breakout — recommended starting point for LPC845. +; Cortex-M0+ @ 24 MHz, 16 KB SRAM / 64 KB Flash. +; +; This env opts into the FastLED LPC845 fast path +; (clockless_arm_lpc_pwm_dma.h — SCT + 3-channel DMA-to-GPIO). Drop the +; FASTLED_LPC_PWM_DMA flag if you'd rather use the plain bit-bang driver. +; +; The platform package is NOT in the upstream PlatformIO registry. We use +; the zackees/platform-nxplpc-arduino fork (adds the Arduino framework +; binding via ArduinoCore-LPC8xx). The SHA below is pinned to match +; FastLED master's own platformio.ini. + +[env:lpc845brk] +platform = https://github.com/zackees/platform-nxplpc-arduino.git#2ee527ae80de98e9105329a7260edb003289dfda +board = lpc845brk +framework = arduino + +build_flags = + -DFASTLED_LPC_PWM_DMA=1 + +lib_deps = + FastLED diff --git a/platforms/platformio.lpcxpresso804.ini b/platforms/platformio.lpcxpresso804.ini new file mode 100644 index 0000000..f48d670 --- /dev/null +++ b/platforms/platformio.lpcxpresso804.ini @@ -0,0 +1,25 @@ +; PlatformIO Project Configuration File +; +; NXP LPCXpresso804 development board (LPC804-based). +; Cortex-M0+ @ 15 MHz, 4 KB SRAM / 32 KB Flash. +; +; IMPORTANT: same 15 MHz constraint as [env:lpc804]. To drive WS2812-class +; LEDs you must opt into the PLU fast path (clockless_arm_lpc_plu.h) by +; uncommenting -DFASTLED_LPC_PLU below — the plain bit-bang driver cannot +; meet WS2812 timing at this clock speed. +; +; The platform package is NOT in the upstream PlatformIO registry. We use +; the zackees/platform-nxplpc-arduino fork (adds the Arduino framework +; binding via ArduinoCore-LPC8xx). The SHA below is pinned to match +; FastLED master's own platformio.ini. + +[env:lpcxpresso804] +platform = https://github.com/zackees/platform-nxplpc-arduino.git#2ee527ae80de98e9105329a7260edb003289dfda +board = lpcxpresso804 +framework = arduino + +build_flags = + ; -DFASTLED_LPC_PLU ; uncomment for WS2812-class LED output + +lib_deps = + FastLED diff --git a/platforms/platformio.lpcxpresso845max.ini b/platforms/platformio.lpcxpresso845max.ini new file mode 100644 index 0000000..4b78f85 --- /dev/null +++ b/platforms/platformio.lpcxpresso845max.ini @@ -0,0 +1,20 @@ +; PlatformIO Project Configuration File +; +; NXP LPCXpresso845MAX development board (LPC845-based). +; Cortex-M0+ @ 24 MHz, 16 KB SRAM / 64 KB Flash. +; +; FastLED uses the bit-bang clockless driver by default on this env. +; To opt into the SCT+DMA fast path add: -DFASTLED_LPC_PWM_DMA=1 +; +; The platform package is NOT in the upstream PlatformIO registry. We use +; the zackees/platform-nxplpc-arduino fork (adds the Arduino framework +; binding via ArduinoCore-LPC8xx). The SHA below is pinned to match +; FastLED master's own platformio.ini. + +[env:lpcxpresso845max] +platform = https://github.com/zackees/platform-nxplpc-arduino.git#2ee527ae80de98e9105329a7260edb003289dfda +board = lpcxpresso845max +framework = arduino + +lib_deps = + FastLED