Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 0 additions & 56 deletions NeoPixel.ino

This file was deleted.

24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
# PitLEDArduinoThing
A repository for programs that will run on an arduino controlling the LED lights for the pit.


Todo list:

to create:

random color switch

fade

sweep- add number of sweeps

hue fade

hue sweep

to test:

swirl

rain

completed:

28 changes: 28 additions & 0 deletions Sweep.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#include <FastLED.h>
#define NUM_LEDS 144
#define DATA_PIN 6

CRGB leds[NUM_LEDS];

void setup()
{
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}

void loop()
{
sweep(255,0,0,30,4);
}

void sweep(byte red, byte green, byte blue, int d, int times, int startPoint)
{
for (int dot = 0; dot < NUM_LEDS/times; dot++)
{
for(int i = 0; i< times; i++)
{
leds[(dot+i*NUM_LEDS/times + startPoint)%NUM_LEDS] = CRGB( red, green, blue); // set this pixel to color, mod is to be safe
}
FastLED.show();
delay(d);
}
}