I try to learn C++ and found out about the sing { that in and out must be on the same line. So I succeeded in compiling the script !!
But I must do more investment but it did not work ! it is (Look) familiar with with my ESP-Now project, complying okay but not wath it must do. The code with ...
Search found 7 matches
- Thu Jan 16, 2025 1:07 pm
- Forum: Sample Code
- Topic: ESP-Now which sending information to 2 led on and off with 2 buttons.
- Replies: 9
- Views: 33961
- Sun Jan 12, 2025 7:57 pm
- Forum: Sample Code
- Topic: ESP-Now which sending information to 2 led on and off with 2 buttons.
- Replies: 9
- Views: 33961
Re: ESP-Now which sending information to 2 led on and off with 2 buttons.
And again a mistake in programming !!!! It is for me ( my age .... can I ask for help and a Little patience ???
I try to copy parts of the originals without success something wot if and else ore with { }
My try:
const int BUTTON = 4;
const int LED = 14;
int BUTTONstate = 0;
const int BUTTON1 ...
I try to copy parts of the originals without success something wot if and else ore with { }
My try:
const int BUTTON = 4;
const int LED = 14;
int BUTTONstate = 0;
const int BUTTON1 ...
- Fri Nov 22, 2024 5:30 pm
- Forum: Sample Code
- Topic: ESP-Now which sending information to 2 led on and off with 2 buttons.
- Replies: 9
- Views: 33961
Re: ESP-Now which sending information to 2 led on and off with 2 buttons.
In Englisch so other viewers can understand!
Thanks for your answer. The problem is, compiling the date gives no problem/errors.
But …I like when I give the ESP32 power both led’s are going on
I changed False in True for both led’s , with a good result.
But when I pressed the button green and red ...
Thanks for your answer. The problem is, compiling the date gives no problem/errors.
But …I like when I give the ESP32 power both led’s are going on
I changed False in True for both led’s , with a good result.
But when I pressed the button green and red ...
- Thu Nov 21, 2024 10:28 am
- Forum: Sample Code
- Topic: ESP-Now which sending information to 2 led on and off with 2 buttons.
- Replies: 9
- Views: 33961
Re: ESP-Now which sending information to 2 led on and off with 2 buttons.
Bedankt voor de tip/het idee. Mis toch een stukje kennis, zou je de wijzigingen kunnen aan geven in het/of een bestand ?
Alvast bedankt. Ga verder nu in het nederlands indien oke
Alvast bedankt. Ga verder nu in het nederlands indien oke
- Fri Oct 25, 2024 8:31 am
- Forum: Sample Code
- Topic: ESP-Now which sending information to 2 led on and off with 2 buttons.
- Replies: 9
- Views: 33961
Re: ESP-Now which sending information to 2 led on and off with 2 buttons.
I think I can ex plane not so good in English !!
Bedankt voor je deels geweldige antwoord heb daar zeker notitie van genomen. Was zeker niet slim van mij. Maar m'n leeftijd ...
Ik denk door de keuze van een "eigen button poort het probleem zou zijn "opgelost".
Vandaar mijn verbazing dat het script ...
Bedankt voor je deels geweldige antwoord heb daar zeker notitie van genomen. Was zeker niet slim van mij. Maar m'n leeftijd ...
Ik denk door de keuze van een "eigen button poort het probleem zou zijn "opgelost".
Vandaar mijn verbazing dat het script ...
- Thu Oct 17, 2024 12:32 pm
- Forum: Sample Code
- Topic: ESP-Now which sending information to 2 led on and off with 2 buttons.
- Replies: 9
- Views: 33961
Re: ESP-Now which sending information to 2 led on and off with 2 buttons.
This line in the program is the "problem" if (strcmp("on", buffer) == 0) It can only look to one GPO port. That is why both led's are going on ! I found out that there are other arguments for strncmp
maybe someone know which must be the right line ( the right argument ) : int strncmp(const char *s1 ...
maybe someone know which must be the right line ( the right argument ) : int strncmp(const char *s1 ...
- Tue Aug 06, 2024 9:23 am
- Forum: Sample Code
- Topic: ESP-Now which sending information to 2 led on and off with 2 buttons.
- Replies: 9
- Views: 33961
ESP-Now which sending information to 2 led on and off with 2 buttons.
I'm making a system with one green and one red led. it must communicate to thee ESP's The script I rewrite is not working " good " it is with ESP-Now I hope someone good find what is wrong.The code I rewrite:
// Script rewrite with 2 led's and two buttons which is NOT correct !
// Include ...
// Script rewrite with 2 led's and two buttons which is NOT correct !
// Include ...