First time using Lua, trying to port an older library
Posted: Thu Jun 06, 2019 4:39 am
I'm running around an ESP32 that I'm trying to integrate with a few modules. 99% of the code examples I'm finding are originally for the ESP8266, and have some depreciated stuff like gpio.mode instead of gpio.config, but I've been able to address that for the most part.
The one thing that's really holding me up right now is that I can't seem to find any equivalent to tmr.delay() with the new timer module in the esp32-dev branch. The documentation is pretty sparse on this particular topic, and for someone who's not super familiar with how to use timers already, it's become a bit of a roadblock.
I already nearly bricked my ESP32 by getting the thing into an infinite bootloop that I nearly couldn't get it out of (bootloader mode wasn't working even pulling GPIO0 low on boot). Anyhoo, if someone could point me toward a more verbose explanation of the tmr module, or at least tell me how to set a fixed delay time, I'd be incredibly grateful!
Thanks in advance!
The one thing that's really holding me up right now is that I can't seem to find any equivalent to tmr.delay() with the new timer module in the esp32-dev branch. The documentation is pretty sparse on this particular topic, and for someone who's not super familiar with how to use timers already, it's become a bit of a roadblock.
I already nearly bricked my ESP32 by getting the thing into an infinite bootloop that I nearly couldn't get it out of (bootloader mode wasn't working even pulling GPIO0 low on boot). Anyhoo, if someone could point me toward a more verbose explanation of the tmr module, or at least tell me how to set a fixed delay time, I'd be incredibly grateful!
Thanks in advance!