I'm expecting to see the state of a pin that I'm reading to pull low for maybe 50 us and then back up to high. The original code running on an UNO/Nano code looks about like this:
while (((PIND & 0b00001000) >> 3) == 1) { // busy } while (((PIND & 0b00001000) >> 3) == 0) { // busy }
I've attempted this with the standard function for reading the pin and it's just too slow I think.
What's the best way to replicate this on an ESP32? Thanks!
Ranking | Name | Answers |
---|---|---|
1 | PCBWay Team | 9 |
2 | Peter de Vroomen | 1 |
3 | Engineer | 1 |
4 | gokul kb | 1 |