Panel Cookies
yt_link
insta_link
fb_link
twitter_link

Arduino FastLed example

Una publicación compartida de ELECTRONOOBS®️ (@electronoobs) el


Arduino FastLed - EXAMPLE


Help me by sharing this post





Download the .zip file below. Open it on your Arduino IDE and upload it to the Arduino and make sure you have the connections as in the schematic. Also, read all the comments in the code to understand more. You could also copy and paste the code from below.
Download EXAMPLE code here (FastLed):



This code is for the schematic.



Remember to install the FastLed library
Downlaod FastLED-3.1.8 library here:



#include <FastLED.h>
#define LED_PIN     7
#define NUM_LEDS    60
CRGB leds[NUM_LEDS];

void setup() {
  FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
  
}
void loop() {
  
  leds[0] = CRGB(255, 0, 0);      //Red, green, blue
  FastLED.show();
  delay(1000);  
  leds[2] = CRGB(0, 255, 0);
  FastLED.show();
  delay(1000);
  leds[4] = CRGB(0, 0, 255);
  delay(1000);
}


Arduino Fast LED example







Affiliate Disclosure

ADVERTISERS



PCBWAY PCB service





Curso Arduino Online nivel bajo