WifWaf / MH-Z19

For Arduino Boards (&ESP32). Additional Examples/Commands., Hardware/Software Serial
GNU Lesser General Public License v3.0
195 stars 39 forks source link

Library incompatible with I2C LCD? #42

Closed luizedu91 closed 2 years ago

luizedu91 commented 2 years ago

I've been using a different MHZ19 library but am having serious bugs with it so I gave yours a try, however, when I upload it the LCD doesn't work. Uploading the old sketch brings it back online. I can't understand how this would affect the screen, but I've changed nothing in my code but what's needed to make each library work.

I'm running a Leonardo, so using hardware serial, if that's relevant.

Edit: Actually it seems like everything stopped working, the relays and the logic controlling them as well.

Any help?

WifWaf commented 2 years ago

It hasn't been tested on the Leonardo, however, it should work.

Any idea at which point in the sketch it's crashing? Are you able to see any prints on the serial monitor?

luizedu91 commented 2 years ago

Thanks for your reply! The LCD doesn't even turn on and there's no serial output as well.

I'm using another library now, so I can't make further tests, sorry!

WifWaf commented 2 years ago

Okay, unfortunately without any more details I can't determine the cause.

If you use the library in future, feel free to open another issue.