-
hello I've been trying to get my arduino uno to talk to an esp8266 wifi module, basically copying https://create.arduino.cc/projecthub/neverofftheinternet/esp8266-setup-and-first-wifi-connection-76fc3c. in the arduino.cc project they use SoftwareSerial which allows them to talk UART (USART?) with the esp over pins d2 and d3, and I'm trying to do the same. there didn't seem to be a SoftwareSerial analog (hah) in this hal (which is reasonable tbf), so to that end I've looked at https://docs.rs/bitbang-hal/latest/bitbang_hal/serial/struct.Serial.html. there I need a timer::CountDown which looks a bit scary to just implement myself. so my question is if you know of anyone who has done something like that, or used the esp wifi in another way. otherwise I'll just go for it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm afraid that implementing If you get stuck, let me know! |
Beta Was this translation helpful? Give feedback.
I'm afraid that implementing
CountDown
is what you'll have to do here. It shouldn't be too hard though, to set up one of the hardware timers for it. You can maybe use theHC SR-04
example as guidance on how to interact with a hardware timer: https://github.com/Rahix/avr-hal/blob/main/examples/arduino-uno/src/bin/uno-hc-sr04.rsIf you get stuck, let me know!