romanhujer / SQM

Sky Qaulity Meter
GNU General Public License v3.0
9 stars 0 forks source link

SQM - Nano not displaying #2

Open bluecough opened 2 years ago

bluecough commented 2 years ago

Roman, I went a head and soldered the board according to your EasyEDA specs. I am able to replicate it however I am unable to get the display working. I open the serial monitor and enter A51 and A511 to enable the OLED display but nothing. Any assistance would be appreciated.

I solved the issue. It seems like the following code was not working for me. Specifically the sqm.begin() gets called but doesnt return.

''' if (sqm.begin()) {

ifdef SH1106_ON

TSL_Msg = "TSL2591 OK";

endif

ifdef SSD1306_ON

TSL_Msg = "TSL";

endif

sqm.verbose = false;
sqm.config.gain = TSL2591_GAIN_LOW;
sqm.config.time = TSL2591_INTEGRATIONTIME_200MS;
sqm.configSensor();
//    sqm.showConfig();
Serial.println(TSL_Msg);

} else { TSL_Msg = "TSL2591 Err"; InitError = true; Serial.println(TSL_Msg); buzzer(50); } // end of if (sqm.begin()) '''