This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uploading a new code: | |
1. Take the battery out. | |
2. Download the arduino programming application: https://www.arduino.cc/en/Main/Software | |
3. Download the required libraries. To do this, open the arduino application. | |
Go to Sketch>Include Library>Manage Libraries. | |
There will be a popup with a list of libraries you can install. | |
The ones you need are called FastLED and IRremote. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//import the necessary libraries | |
#include "FastLED.h" | |
#include "IRremote.h" | |
//define some variables | |
#define LEDPIN 6 | |
#define RECV_PIN 3 | |
#define LED_TYPE NEOPIXEL | |
#define NUM_LEDS 15 | |
#define BRIGHTNESS 200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//import the necessary libraries | |
#include "FastLED.h" | |
#include "IRremote.h" | |
//define some variables | |
#define LEDPIN 6 | |
#define RECV_PIN 3 | |
#define LED_TYPE NEOPIXEL | |
#define NUM_LEDS 15 | |
#define BRIGHTNESS 200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "FastLED.h" | |
#define LEDPIN 6 | |
#define LED_TYPE NEOPIXEL | |
#define NUM_LEDS 15 | |
#define BRIGHTNESS 60 | |
#define FRAMES_PER_SECOND 120 | |
CRGB leds[NUM_LEDS]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <FastLED.h> | |
#define NUM_LEDS 12 | |
#define PIN 6 | |
CRGB leds[NUM_LEDS]; | |
void setup() { | |
FastLED.addLeds<NEOPIXEL, PIN>(leds, NUM_LEDS); | |
} |