Hi.
I've tried to compile your sketch for a ESP32 Lilygo but I get several errors:
Arduino:1.8.19 (Windows 10), Scheda:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All >SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB >OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void setup()':
Si473x_Rotary_Encoder_Interface_V4.1:910:20: error: 'TFT_DISPOFF' was not declared in this scope; did you mean 'TFT_INVOFF'?
Si473x_Rotary_Encoder_Interface_V4.1:928:3: error: 'ledcSetup' was not declared in this scope
928 | ledcSetup(LedChannelforTFT, LedFreq, LedResol);
| ^~~~~
Si473x_Rotary_Encoder_Interface_V4.1:929:17: error: 'TFT_BL' was not declared in this scope; did you mean 'TFT_BGR'?
929 | ledcAttachPin(TFT_BL, LedChannelforTFT);
| ^~
| TFT_BGR
Si473x_Rotary_Encoder_Interface_V4.1:929:3: error: 'ledcAttachPin' was not declared in this scope
929 | ledcAttachPin(TFT_BL, LedChannelforTFT);
| ^~~~~
Si473x_Rotary_Encoder_Interface_V4.1:931:3: error: 'ledcWrite' was not declared in this scope
931 | ledcWrite(LedChannelforTFT, 250);
| ^~~~~
Si473x_Rotary_Encoder_Interface_V4.1:932:20: error: 'TFT_DISPON' was not declared in this scope; did you mean 'TFT_MISO'?
932 | tft.writecommand(TFT_DISPON);
| ^~~~~~
| TFT_MISO
Si473x_Rotary_Encoder_Interface_V4.1:955:20: error: could not convert 'EEPROM.EEPROMClass::begin(265)' from 'void' to 'bool'
955
if (!EEPROM.begin(EEPROM_SIZE))
~~^~~
void
Si473x_Rotary_Encoder_Interface_V4.1:955:20: error: in argument to unary !
Si473x_Rotary_Encoder_Interface_V4.1:1107:3: error: 'xTaskCreate' was not declared in this scope
C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void SaveInEeprom(void*)':
Si473x_Rotary_Encoder_Interface_V4.1:1179:23: error: 'portTICK_RATE_MS' was not declared in this scope
1179 | vTaskDelay(5000 / portTICK_RATE_MS);
| ^~~~
Si473x_Rotary_Encoder_Interface_V4.1:1179:5: error: 'vTaskDelay' was not declared in this scope
1179 | vTaskDelay(5000 / portTICK_RATE_MS);
| ^~~~~~
C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void loop()':
Si473x_Rotary_Encoder_Interface_V4.1:1455:24: error: 'TFT_DISPON' was not declared in this scope; did you mean 'TFT_MISO'?
Si473x_Rotary_Encoder_Interface_V4.1:1456:7: error: 'ledcWrite' was not declared in this scope
1456 | ledcWrite(LedChannelforTFT, currentBrightness);
| ^~~~~
Si473x_Rotary_Encoder_Interface_V4.1:2189:5: error: 'ledcWrite' was not declared in this scope
2189 | ledcWrite(LedChannelforTFT, currentBrightness);
| ^~~~~
C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void Dispoff()':
Si473x_Rotary_Encoder_Interface_V4.1:2218:5: error: 'ledcWrite' was not declared in this scope
2218 | ledcWrite(LedChannelforTFT, 0);
| ^~~~~
Si473x_Rotary_Encoder_Interface_V4.1:2219:22: error: 'TFT_DISPOFF' was not declared in this scope; did you mean 'TFT_INVOFF'?
2219 | tft.writecommand(TFT_DISPOFF);
| ^~~
| TFT_INVOFF
C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void encoderCheck()':
Si473x_Rotary_Encoder_Interface_V4.1:2303:24: error: 'TFT_DISPON' was not declared in this scope; did you mean 'TFT_MISO'?
2303 | tft.writecommand(TFT_DISPON);
| ^~~~~~
| TFT_MISO
Si473x_Rotary_Encoder_Interface_V4.1:2304:7: error: 'ledcWrite' was not declared in this scope
2304 | ledcWrite(LedChannelforTFT, currentBrightness);
| ^~~~~
C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void encoderButtonCheck()':
Si473x_Rotary_Encoder_Interface_V4.1:2414:24: error: 'TFT_DISPON' was not declared in this scope; did you mean 'TFT_MISO'?
2414 | tft.writecommand(TFT_DISPON);
| ^~~~~~
| TFT_MISO
Si473x_Rotary_Encoder_Interface_V4.1:2415:7: error: 'ledcWrite' was not declared in this scope
2415 | ledcWrite(LedChannelforTFT, currentBrightness);
| ^~~~~
exit status 1
'TFT_DISPOFF' was not declared in this scope; did you mean 'TFT_INVOFF'?
Are there something wrong with the libraries?
I've update TFT_eSPI to version 2.4.79. Which version do you use?
Thanks for your help.
Best regards.
Hi. I've tried to compile your sketch for a ESP32 Lilygo but I get several errors:
C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void setup()': Si473x_Rotary_Encoder_Interface_V4.1:910:20: error: 'TFT_DISPOFF' was not declared in this scope; did you mean 'TFT_INVOFF'?
910 | tft.writecommand(TFT_DISPOFF); | ^
~~| TFT_INVOFFSi473x_Rotary_Encoder_Interface_V4.1:928:3: error: 'ledcSetup' was not declared in this scope 928 | ledcSetup(LedChannelforTFT, LedFreq, LedResol); | ^
~~~~Si473x_Rotary_Encoder_Interface_V4.1:929:17: error: 'TFT_BL' was not declared in this scope; did you mean 'TFT_BGR'? 929 | ledcAttachPin(TFT_BL, LedChannelforTFT); | ^
~| TFT_BGRSi473x_Rotary_Encoder_Interface_V4.1:929:3: error: 'ledcAttachPin' was not declared in this scope 929 | ledcAttachPin(TFT_BL, LedChannelforTFT); | ^
~~~~Si473x_Rotary_Encoder_Interface_V4.1:931:3: error: 'ledcWrite' was not declared in this scope 931 | ledcWrite(LedChannelforTFT, 250); | ^
~~~~Si473x_Rotary_Encoder_Interface_V4.1:932:20: error: 'TFT_DISPON' was not declared in this scope; did you mean 'TFT_MISO'? 932 | tft.writecommand(TFT_DISPON); | ^
~~~~~ | TFT_MISO~~^~~Si473x_Rotary_Encoder_Interface_V4.1:955:20: error: in argument to unary !
Si473x_Rotary_Encoder_Interface_V4.1:1107:3: error: 'xTaskCreate' was not declared in this scope
1107 | xTaskCreate(SaveInEeprom, "SaveInEeprom", 2048, NULL, 1, NULL); | ^
~~C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void SaveInEeprom(void*)':
Si473x_Rotary_Encoder_Interface_V4.1:1179:23: error: 'portTICK_RATE_MS' was not declared in this scope 1179 | vTaskDelay(5000 / portTICK_RATE_MS); | ^
~~~Si473x_Rotary_Encoder_Interface_V4.1:1179:5: error: 'vTaskDelay' was not declared in this scope 1179 | vTaskDelay(5000 / portTICK_RATE_MS); | ^
~~~~~C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void loop()':
Si473x_Rotary_Encoder_Interface_V4.1:1455:24: error: 'TFT_DISPON' was not declared in this scope; did you mean 'TFT_MISO'?
1455 | tft.writecommand(TFT_DISPON); | ^
~~~~~ | TFT_MISOSi473x_Rotary_Encoder_Interface_V4.1:1456:7: error: 'ledcWrite' was not declared in this scope 1456 | ledcWrite(LedChannelforTFT, currentBrightness); | ^
~~~~Si473x_Rotary_Encoder_Interface_V4.1:2189:5: error: 'ledcWrite' was not declared in this scope 2189 | ledcWrite(LedChannelforTFT, currentBrightness); | ^
~~~~C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void Dispoff()':
Si473x_Rotary_Encoder_Interface_V4.1:2218:5: error: 'ledcWrite' was not declared in this scope 2218 | ledcWrite(LedChannelforTFT, 0); | ^
~~~~Si473x_Rotary_Encoder_Interface_V4.1:2219:22: error: 'TFT_DISPOFF' was not declared in this scope; did you mean 'TFT_INVOFF'? 2219 | tft.writecommand(TFT_DISPOFF); | ^
~~| TFT_INVOFFC:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void encoderCheck()':
Si473x_Rotary_Encoder_Interface_V4.1:2303:24: error: 'TFT_DISPON' was not declared in this scope; did you mean 'TFT_MISO'? 2303 | tft.writecommand(TFT_DISPON); | ^
~~~~~ | TFT_MISOSi473x_Rotary_Encoder_Interface_V4.1:2304:7: error: 'ledcWrite' was not declared in this scope 2304 | ledcWrite(LedChannelforTFT, currentBrightness); | ^
~~~~C:\radio\SI437x\SI4735-master\Si473x_Rotary_Encoder_Interface_V4.1\Si473x_Rotary_Encoder_Interface_V4.1.ino: In function 'void encoderButtonCheck()': Si473x_Rotary_Encoder_Interface_V4.1:2414:24: error: 'TFT_DISPON' was not declared in this scope; did you mean 'TFT_MISO'? 2414 | tft.writecommand(TFT_DISPON); | ^
~~~~~ | TFT_MISOSi473x_Rotary_Encoder_Interface_V4.1:2415:7: error: 'ledcWrite' was not declared in this scope 2415 | ledcWrite(LedChannelforTFT, currentBrightness); | ^
~~~~exit status 1
'TFT_DISPOFF' was not declared in this scope; did you mean 'TFT_INVOFF'?
Are there something wrong with the libraries? I've update TFT_eSPI to version 2.4.79. Which version do you use? Thanks for your help. Best regards.