Re: thermostat with Oled display
Posted: Sun Nov 29, 2020 2:59 am
damn it ... 2 hours of my life is gone ... Now I wrote it down to remember.elmaya wrote: ↑Sun Nov 29, 2020 2:59 am to compile this you have to use the Supla library v1.6.1
https://github.com/SUPLA/arduino
BTW:YoMan wrote: ↑Sun Nov 29, 2020 5:45 pmdamn it ... 2 hours of my life is gone ... Now I wrote it down to remember.elmaya wrote: ↑Sun Nov 29, 2020 2:59 am to compile this you have to use the Supla library v1.6.1
https://github.com/SUPLA/arduino
thanks bro
Code: Select all
if (dimm == true) {
display.setContrast(35, 50, 10)
yes, it's a bit confusing with the two Supla libraries.YoMan wrote: ↑Sun Nov 29, 2020 5:45 pmdamn it ... 2 hours of my life is gone ... Now I wrote it down to remember.elmaya wrote: ↑Sun Nov 29, 2020 2:59 am to compile this you have to use the Supla library v1.6.1
https://github.com/SUPLA/arduino
thanks bro
OK. I'll try to remember ...elmaya wrote: ↑Sun Nov 29, 2020 5:59 pmyes, it's a bit confusing with the two Supla libraries.YoMan wrote: ↑Sun Nov 29, 2020 5:45 pmdamn it ... 2 hours of my life is gone ... Now I wrote it down to remember.elmaya wrote: ↑Sun Nov 29, 2020 2:59 am to compile this you have to use the Supla library v1.6.1
https://github.com/SUPLA/arduino
thanks bro
if "#define SUPLADEVICE_CPP" is among the first lines of the code it is the "Supla v1.6.1 library "
otherwise it will be "Supla Dev library"
this is the latest version with the libraries:YoMan wrote: ↑Fri Dec 04, 2020 9:15 pm @elmaya
I wanted to play more with Your soft and bought 1,3 OLED SH1106. I've just downloaded the source from github and I've got that flicker symptom. There was a compiled version https://en-forum.supla.org/viewtopic.php?p=49382#p49382 with fixed bug but is it fixed in non-compiled version? Or is it my mistake with compilation?
Thanks a lot.elmaya wrote: ↑Sat Dec 05, 2020 9:06 amthis is the latest version with the libraries:YoMan wrote: ↑Fri Dec 04, 2020 9:15 pm @elmaya
I wanted to play more with Your soft and bought 1,3 OLED SH1106. I've just downloaded the source from github and I've got that flicker symptom. There was a compiled version https://en-forum.supla.org/viewtopic.php?p=49382#p49382 with fixed bug but is it fixed in non-compiled version? Or is it my mistake with compilation?
supla_Termostst_oled_sensor_icomo_H_C.rar
Code: Select all
// if (window == false){
// display.drawXbm(48, 0, 16, 16, logo16_Win_close);// -------------------------------------------------- window close --------
// }else{
// display.drawXbm(48, 0, 16, 16, logo16_Win_open);// -------------------------------------------------- window open --------
// }
Code: Select all
void itrate_Term() {
if (window == false){
if ( digitalRead(btn[1].relay_pin-1) == 1){
(btn[1].mem) = 0 ;
Serial.println("Window open");
CustomSupla.relayOff(1);
Code: Select all
if (window == false){
display.setFont(ArialMT_Plain_16);
display.setTextAlignment(TEXT_ALIGN_CENTER);
display.drawString(64, 48, "HALTED " + String(trs, 1) + "ºC");