Add Final_Code
Bare bones file for the final file. Will be adding more code with time.
This commit is contained in:
parent
a53d48154e
commit
f1020cfd35
|
@ -0,0 +1,35 @@
|
||||||
|
#include <Arduino.h>
|
||||||
|
#include <FastLED.h>
|
||||||
|
|
||||||
|
#define NUM_LEDS 300 // How many leds in your strip?
|
||||||
|
|
||||||
|
//defining locations of pins
|
||||||
|
#define DATA_PIN 2
|
||||||
|
#define BUTTON_PIN 4
|
||||||
|
|
||||||
|
CRGB leds[NUM_LEDS]; // Define the array of leds
|
||||||
|
|
||||||
|
//file object to store csv
|
||||||
|
//File dataFile;
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); // GRB ordering is assumed
|
||||||
|
Serial.begin(9600); //set the baud rate
|
||||||
|
pinMode(BUTTON_PIN, INPUT_PULLUP); //use internal pullup resistor
|
||||||
|
//attachInterrupt(buttonPin, buttonPressed, FALLING); !!!
|
||||||
|
|
||||||
|
} // setup
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
|
||||||
|
|
||||||
|
} // loop
|
||||||
|
|
||||||
|
//remove a round if not used
|
Loading…
Reference in New Issue