Platform port

From FastLED/FastLED · View interactive version

Platform port is an AI agent skill from the GitHub repository FastLED/FastLED. Guide porting FastLED to new MCU platforms, including int.h types, clockless drivers, SPI implementations, and platform detection. Use when adding support for a new microcontroller family or board.

How to use this skill

Skill file

Guide the process of porting FastLED to a new microcontroller platform.

$ARGUMENTS

What This Skill Covers

Platform Detection Setup

Integer Type Definitions

LED Output Drivers

<Peripheral>_Type typedef or <Peripheral>_BASE address, verify the

peripheral EXISTS on the target chip against BOTH the vendor CMSIS PAL

header for that specific variant AND the chip's datasheet chapter. See

agents/docs/peripheral-existence.md for the halt-on-phantom rule and

the LPC804 anti-example (framework-arduino-lpc8xx#35).

(LPC845.h, stm32f4xx.h, nrf52840.h, hardware/structs/*.h,

etc.); do not hand-roll register shims. See

agents/docs/register-maps.md for the rule, the vendor-source

table, and the tier-1/2/3 integration pattern.

Build System Integration

How To Use

/platform-port STM32H7
/platform-port RP2040
/platform-port nRF52840
/platform-port I need to add support for the ESP32-P4

What You'll Get

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.