Arduino_APA102 - Arduino_APA102(numLEDs, newDataPin , newClockPin)

Attach the LEDs to the pins, and save the number of total LEDs.

Syntax

Arduino_APA102 leds(totalLEDs, dataPin, clockPin);

Parameters

  • numLEDs : Amount of the LEDs to control
  • dataPin : Pin connected to SDI (DATA)
  • clockPin : Pîn connected to CKI (CLOCK)

Example

#include <Arduino_APA102.h> 

Arduino_APA102 leds(5, 5, 4);

void setup() {} 
void loop() {} 

See also