I would like to know where/how I could find a way to compile a 'program' to run a W2812 LED light strip?
all I want to do is have 20 or 30 lights turn on one at a time until all are lit then for all to stay on until turned off. looking for a place where I can practice compiling said program.
See an examples of any WS2812 library for Arduino - FastLed of Adafruit Neopixel
sorry for my ignorance, but where do I find such examples?
I did a little looking around before posting and didn't find anything that seemed it was about this situation.
The Arduino IDE has an excellent platform in the IDE.
The Arduino example code folder contains lots of useful stuff to use in the beginning.
You're not the first member making the mistake thinking there's a ready to use code that fits Your needs.
You need to get the hands dirty, making code, or code adjustments.
Fastled library examples
https://fastled.io/docs/examples.html
maybe I am just too dense for Arduino.
I have looked through many of the libraries and find nothing that seems to represent what I am looking to do. perhaps it is because I don't know what to call the program I am looking for, I don't know.
I actually feel quite stupid right now.
but where do I learn to read and write code.
I have found how to turn on one LED, but that code then turns it off.
I need to then turn on the next LED.
haven't been able to find that
Install the FastLED library; it comes with the FirstLight example that gets close to what you want (it is a walking light). Study the example till you understand it; once you understand it you can modify it to suite your needs.
Don't feel bad if you don't understand something and have to ask about it. It will either be explained or you will be pointed to some resources to do some studying.
You will need to decide how "on" happens and how "off" happens.
Practice web site...
there will be a simple on/off push button
Do tell... this could be many things. You need to decide how "on" happens and how "off" happens.
but it is a 'simple on/off switch'
said switch controls power to the circuit.
what are you looking for?
This.
Why not just pull the plug?
Your "simple" means a handful of possibilities to me.
the LED's will be down the blade of a sword with a switch in the handle.
this is something I put together in Word (until I can get my laptop in a place where I can hook up my Arduino)
does it look like it would work?
my LED strip would be a SK6812 RGBW.
#define PIN SK6812 2
#define NUM_PIXELS 30
#define DELAY_INTERVAL 500
void setup()
SK6812.begin();
void loop()
for (int pixel = 0; pixel < NUM_PIXELS; pixel++)
SK6812.setPixelColor(pixel, SK6812.Color(255,255,255))
SK6812.setBrightness(255)
delay (DELAY_INTERVAL)
thank you
PS I don't know why the 'program/code' is double spaced.
sorry for my ignorance, but I haven't been able to figure out how to do that, hence the reason for the Word document.
I copied this from what I thought was code from Arduino IDE for WS2812 and made changes for the WK6812 that I have.
You open the Arduino IDE, type in your code
but where do I get the code to type in.
I thought that's what I was doing when I compiled the Word doc.
I have several pages of saved stuff that I was thinking was different parts of code, but I can't decide what would be the code I would need to do what I want.
as a side note, I tried a while back to set up a random matrix of LED's with Arduino but also couldn't figure that out. I ended up using 4 different flasher circuits and placed the LED's in a matrix so that those from each flasher circuit weren't next to each other. made a pretty good random matrix (I thought anyway)
also, I have tried to compile some code in Arduino IDE and when I 'verify' it, it won't do anything because I don't have a qualified board connected.
what does it mean when I get an error message that says 'Compilation error: exit status 1'?