Stap 4: Upload sommige Code
Kopieer en plak deze code in de Arduino IDE, en uploaden naar je board!
// demo project for the Radioshack LED Tricolor Light Strip // a project for Arduino // by AUDREY LOVE // // // // with great support from the FastLED.io Library // download it here: https://github.com/FastLED // // // #include "FastLED.h" #define NUM_LEDS 10 //this defines the number of LED Segments in the Strip #define DATA_PIN 7 //plug the green wire of the TM1803 Radioshack Strip into Pin 7 CRGB leds[NUM_LEDS]; void setup() { FastLED.addLeds<TM1803, DATA_PIN, GBR>(leds, NUM_LEDS); Serial.begin(9600); // initialize serial communication at 9600 bits per second: } void loop(){ leds[0] = CRGB::White; FastLED.show(); delay(30); leds[0] = CRGB::Black; FastLED.show(); delay(30); }