Add notes

This commit is contained in:
2026-01-02 08:53:55 +01:00
parent 22f2e05cee
commit 3541407372
2 changed files with 35 additions and 0 deletions

BIN
Cosplay LED code.docx Normal file

Binary file not shown.

View File

@@ -1,2 +1,37 @@
# 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