dparson55 / NRFLite

nRF24L01+ library with AVR 2 pin support, requiring very little code along with YouTube videos showing all available features.
MIT License
161 stars 27 forks source link

Good to know, use yield on ESP8266 #42

Closed petergullberg closed 4 years ago

petergullberg commented 4 years ago

Great lib! On an ESP8266, it need a yield function in the inner loop of NRFLite::printChannels()

if defined(ESP8266)

        yield();

endif

Cheers \Peter

dparson55 commented 4 years ago

How does this change look? https://github.com/dparson55/NRFLite/compare/esp-yield

Unfortunately I don't have an ESP8266 to test so have to rely on anyone who reports an issue with them.

petergullberg commented 4 years ago

The ESP8266 WDT is ~1.5-3seconds, and your inner loop should be <100ms, so that should be fine

dparson55 commented 4 years ago

I don't have an ESP but had so many requests to add their support that I just have to rely on helpful people like you to solve issues. Thanks!