Add notes
This commit is contained in:
BIN
Cosplay LED code.docx
Normal file
BIN
Cosplay LED code.docx
Normal file
Binary file not shown.
35
README.md
35
README.md
@@ -1,2 +1,37 @@
|
|||||||
# CosplayLeds
|
# CosplayLeds
|
||||||
|
|
||||||
|
## Helpfull links
|
||||||
|
|
||||||
|
- Wokwi.com has a full emulator - <https://wokwi.com/projects/new/arduino-uno>
|
||||||
|
- Using ledstrips from Arduino - <https://arduinogetstarted.com/tutorials/arduino-led-strip>
|
||||||
|
- Example project from someone else - <https://github.com/DarioCasciato/arduino-led-strip-controller>
|
||||||
|
- Good video to prime me <https://www.youtube.com/watch?v=EvRxQbhDxCo>
|
||||||
|
|
||||||
|
## Good to know
|
||||||
|
|
||||||
|
- Arduino (Uno)
|
||||||
|
- WS2812B Ledstrip
|
||||||
|
- Pushbutton (2x) op pin 5 en 6
|
||||||
|
- Resistor
|
||||||
|
|
||||||
|
## Data structure
|
||||||
|
|
||||||
|
Since we want to have multiple animations, having a good data structure is key
|
||||||
|
|
||||||
|
### Animation Array
|
||||||
|
|
||||||
|
Having arrays we can loop through makes it easy to add/change animations
|
||||||
|
|
||||||
|
- Color
|
||||||
|
- Brightness
|
||||||
|
- Wait in MS - Wait after color is set/fade is done
|
||||||
|
- Fade - Boolean should this fade from previous color, brightness or instant?
|
||||||
|
- FadeSpeed - speed of fade
|
||||||
|
|
||||||
|
### Animations Array
|
||||||
|
|
||||||
|
By having an array of animations we can switch to the next animation by pressing the button. The first array being off
|
||||||
|
|
||||||
|
- Name
|
||||||
|
- Loop - Should this auto repeat
|
||||||
|
- Animation Array
|
||||||
|
|||||||
Reference in New Issue
Block a user