Menu

Reddit - Please wait for verification
📰
0

Reddit - Please wait for verification

ESP8266·/u/KoharuDream·3 days ago
#0k1yS94K
Reading 0:00
15s threshold

Hi, I'm a newbie in electronics. I kinda know the basics such as components, sensors, connections... Most of my projects used Arduino UNO and C++. However, at my new job they use ESP8266 and NodeMCU, but with Lua, compiling the code to the board using the ESPlorer IDE. I'm kinda struggling to learn it, but I managed to do a simple push button with on/off. But now I'm trying to do an "update" on the on/off LED with a push button, adding different LED behaviors depending on the input — like a 4-second press to turn the LED on, and 2 consecutive presses to make it blink in S.O.S. Morse Code. I use Wokwi to simulate the circuit and it works fine. Regarding Wokwi, I could only use ESP32 (I believe the ESP8266 should work the same way, just adapting the circuit), but when I translate my C++ code to Lua and upload it to the ESP8266, it doesn't work. I checked for bad contacts but it doesn't seem to be the issue. Can anyone help? I'm open to criticism as well.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More