moeskerv / esp32-weather-station

26 stars 9 forks source link

Code working #6

Open manroop5 opened 3 years ago

manroop5 commented 3 years ago

Hello again, I tried changing parameters and code seems to be working to some extent. I am not sure if there is problem with the code.

I changed 2 things (in your code) after which I am able to see "Connecting to Wifi" on the screen which was blank before. So now I am thinking the problem is with the code. 2 changes I made are 1.) ILI9341_SPI tft = ILI9341_SPI(TFT_CS, TFT_DC); -->> ILI9341_SPI tft = ILI9341_SPI(TFT_CS, TFT_DC, TFT_RST); 2.) Adding connectWifi(); after line 172 after gfx.commit(); Please help if you can as I bought sps30 thinking this code would work

Thanks

ghost commented 2 years ago

I too am having the same issue..a blank screen, and I know the ESP32 module is functional, as it works with other code.

I tried adding edit number 1, and get message it is out of scope, need to dig into that further.

I do believe the issue is with the pin connections from ESP32 to the TFT display. Since there is nothing as far as a wiring diagram I am assuming no mods to either board are required. Please confirm.

ghost commented 2 years ago

Fixed the scope issue, added a define statement, get connecting to wifi..then nothing.

Working now on the wifi connect issue. I can see I'm connected...so definitely a bug in the code.

moeskerv commented 2 years ago

I had to do a change for the BME280 as the Adafruit driver changed, bit then U still can compile the code and also it still works on my target. Maybe you use a different hardware then me?

moeskerv commented 2 years ago

in the wip_scd30 branch I recently added support for a scd30 CO2 sensor. Your may also try this branch. This is the version I checked today.