Two ESP8266 P2P with WS2812b
Hello, everyone, I have two ESP8266’s and I would like it if you press a button on one ESP and turn on the LEDs on the other ESP.The other way around.I already have two working sketches that work with...
View ArticleReply To: Two ESP8266 P2P with WS2812b
It’s a little much for me to try – especially since I still have “play with ESP8266” on my “To Do” list. Some basics I can think of though; From the the 3rd sketch, I’d make a separate function of the...
View ArticleReply To: Two ESP8266 P2P with WS2812b
Whew! I tried, but my knowledge is too little for that. Don’t know where to start.But no matter, is not soo important. Thought it would be easier ;-)
View ArticleReply To: Two ESP8266 P2P with WS2812b
Haha, well, we all had to start somewhere. Do it in small steps. Let’s start with the 3rd sketch, and move the loop() function to a separate function. This would look something like this. Look at the...
View ArticleReply To: Two ESP8266 P2P with WS2812b
The next step would be merging sketch 2 and 3 … I don’t have the ability to test the code, so there may or may not be an error in it:...
View ArticleReply To: Two ESP8266 P2P with WS2812b
Thank you Hans,That looks more logical to me.I will study and try it tonight. :-)Thank you for your tireless help
View ArticleReply To: Two ESP8266 P2P with WS2812b
Hans Hans Hans, I don’t know what to say Thank you Thank you Thank you It works What was missing was this: int buttonState=0;What I have changed:buttonState=digitalRead(SWITCH); instead of...
View ArticleReply To: Two ESP8266 P2P with WS2812b
Hello Hans,I know you’re busy, and I don’t want to claim you.But maybe you can help me out sometime.I have now adapted the code to ESP32 and it does fine.Now I would like the touch button instead of...
View ArticleReply To: Two ESP8266 P2P with WS2812b
Hi Robiv8 It’s OK to ask Well, I’d use the same approach we used before.Determine in the sketch what the “working parts” are and transplant them to the other sketch. So the key elements of the 1st...
View ArticleReply To: Two ESP8266 P2P with WS2812b
Just got home from the late shift.I will look at it tomorrow in peace and implement it.Thank you already times.Robi
View ArticleReply To: Two ESP8266 P2P with WS2812b
What’s the matter with that? It doesn’t quite match the touch code. pinMode(BUTTON_1, INPUT_PULLUP); <-------- and this void doLEDEffect() {buttonState=digitalRead(BUTTON_1); <------- if...
View ArticleReply To: Two ESP8266 P2P with WS2812b
Sorry for so much text ;-)I managed it once.Now only the sensitivity is disturbing, it triggers from time to time by itself because it falls below 20. Could one there something tinker that it only...
View ArticleArt installation project.
Hello Hans! Firs of all i want to thank you a lot for this forum. It’s so helpful. Its been over a month that i am working on my project and i am having a hard time to make the code. So i have 32...
View ArticleReply To: Art installation project.
Hi Simba! That looks like a very cool project! To shorten your code you can use for-loops.Any time you see code repeat in your sketch: think about using loops, for-loop being one of them. See also:...
View ArticleReply To: Art installation project.
p.s. I noticed a double post of this, so I removed one of them.
View ArticleReply To: Art installation project.
Wow such a fast reply. Thank you so much for your help. I will try testing the modified code a little bit later. Been researching all night, now need some sleep. I will share end results as i am...
View Article