to compile this you have to use the Supla library v1.6.1
https://github.com/SUPLA/arduino
thermostat with Oled display
BTW:YoMan wrote: ↑Sun Nov 29, 2020 5:45 pmdamn itelmaya wrote: ↑Sun Nov 29, 2020 2:59 amto compile this you have to use the Supla library v1.6.1
https://github.com/SUPLA/arduino... 2 hours of my life is gone ...
Now I wrote it down to remember.
thanks bro
Code: Select all
if (dimm == true) {
display.setContrast(35, 50, 10)
YoMan
yes, it's a bit confusing with the two Supla libraries.YoMan wrote: ↑Sun Nov 29, 2020 5:45 pmdamn itelmaya wrote: ↑Sun Nov 29, 2020 2:59 amto compile this you have to use the Supla library v1.6.1
https://github.com/SUPLA/arduino... 2 hours of my life is gone ...
Now I wrote it down to remember.
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"
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 itelmaya wrote: ↑Sun Nov 29, 2020 2:59 amto compile this you have to use the Supla library v1.6.1
https://github.com/SUPLA/arduino... 2 hours of my life is gone ...
Now I wrote it down to remember.
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"

I'm on the beginnig of may adventure with arduino/esp8266/supla/automatization/smart home/things , etc ..... so sometimes I have more questions than anybody is able or has time to give answers

so thank You twice in the name of all beginners for You spending Your valuable time on that forum <thumb up>

P.S.
for others as well of course but it is the thread that concerns Your project
YoMan
@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?
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?
YoMan
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
BTW: I do not need window sensor at the moment (maybe in future) so I've changed some lines. Would You like to check if it will not cause any problems in future?
added "//":
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");
YoMan