FtSwarmPixel
External ftPixels are connected via the LED Extention Port. On the ftSwarm the ftPixel adapter can be used, on the ftSwarmRS the first ftPixel is connected directly to the screwterminal. The ftPixels additionally require a 9V power supply. Please consider the current consumption of the LEDs when selecting the power supply for the ftPixels!
![]()
On the left side of the ftPixel’s housing you will see “+” and “-“ markings. Connect the middle pin on the marked side of the ftPixel to the LED Extention Port of the ftSwarm. “+” and “-“ are connected to the power supply.
Further ftPixels could be simply cascaded. The three pins of the unmarked/right side of the previous ftPixel are connected to the pins of the marked/left side of the next ftPixel.
FtSwarmLED(FtSwarmSerialNumber_t serialNumber, FtSwarmPort_t port)
Constructor to create a FtSwarmLED object. If the referenced controller isn’t connected to the swarm yet, the firmware will waits until the controller gets online.
- serialNumber: Serial number of the used ftSwarm controller.
- port: Port number, use FTSWARM_LED1 and FTSWARM_LED2 for the built-LEDs, FTSWARM_LED3 … FTSWARM_LED18 for external ftPixel.
FtSwarmLED( const char *name )
Constructor to create a FtSwarmLED object. If the referenced controller isn’t connected to the swarm yet, the firmware will waits until the controller gets online.
- name: Alias name of the IO port.
void setColor(uint32_t color)
Sets the LED’s color. Color is a RGB value, you could use FastLEDs CRGB-constants.
uint32_t getColor()
Gets the LED’s color.
void setBrightness(uint8_t brightness)
Set the LED’s brightness. 255 is maximum power, 0 will turn off the LED.
uint8_t getBrightness()
Get the LED’s brightness.
void setBlink( uint32_t periodMS, uint8_t signal, uint8_t duty, uint8_t pause, FtSwarmEffectColor_t c1, FtSwarmEffectColor_t c2, FtSwarmEffectColor_t c3 )
Sets the ftPixel’s blink effect on.
- periodMS: Duration of a beat in ms
- signal: Number of signal beats
- pause: Number of pause beats
- c1: ftPixel’s color during signal
- c2: ftPixel’s color during signal pause
- c3: ftPixel’s color during pause

Colors c1 bis c3 are using the following values:
- FTSWARM_EFFECT_COLOR_BLACK
- FTSWARM_EFFECT_COLOR_RED
- FTSWARM_EFFECT_COLOR_GREEN
- FTSWARM_EFFECT_COLOR_BLUE
- FTSWARM_EFFECT_COLOR_YELLOW
- FTSWARM_EFFECT_COLOR_ORANGE
- FTSWARM_EFFECT_COLOR_CYAN
- FTSWARM_EFFECT_COLOR_PINK
- FTSWARM_EFFECT_COLOR_MAGENTA
- FTSWARM_EFFECT_COLOR_WHITE
void revokeEffect( CRGB color )
Revoke the blink effect and set the ftPixel’s color.