Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not build #5

Open
DatutaX opened this issue Sep 30, 2024 · 0 comments
Open

Can not build #5

DatutaX opened this issue Sep 30, 2024 · 0 comments

Comments

@DatutaX
Copy link

DatutaX commented Sep 30, 2024

I got error went build this project. Can you show me how to build it

In file included from src/main.cpp:4:
include/lcd.h: In function 'void fillArc(TFT_eSprite&, int, int, int, int, int, int, int, unsigned int)':
include/lcd.h:24:39: error: 'DEG2RAD' was not declared in this scope
float sx = cos((start_angle - 90) * DEG2RAD);
^~~~~~~
include/lcd.h:24:39: note: suggested alternative: 'REG_READ'
float sx = cos((start_angle - 90) * DEG2RAD);
^~~~~~~
REG_READ
In file included from src/main.cpp:4:
include/lcd.h: In function 'void updateStatic(TFT_eSprite&)':
include/lcd.h:70:36: error: 'CLOCK_BG' was not declared in this scope
sprite.fillCircle(120, 120, 120, CLOCK_BG);
^~~~~~~~
include/lcd.h:70:36: note: suggested alternative: 'LOCK_EX'
sprite.fillCircle(120, 120, 120, CLOCK_BG);
^~~~~~~~
LOCK_EX
include/lcd.h:71:36: error: 'BACKGROUND' was not declared in this scope
sprite.fillCircle(120, 120, 115, BACKGROUND);
^~~~~~~~~~
include/lcd.h:73:23: error: 'TEXT_COLOUR' was not declared in this scope
sprite.setTextColor(TEXT_COLOUR, BACKGROUND);
^~~~~~~~~~~
include/lcd.h:73:23: note: suggested alternative: 'TAB_COLOUR'
sprite.setTextColor(TEXT_COLOUR, BACKGROUND);
^~~~~~~~~~~
TAB_COLOUR
include/lcd.h: In function 'void updateDial(TFT_eSprite&, float, float)':
include/lcd.h:109:55: error: 'ALT_TEXT_COLOUR' was not declared in this scope
fillArc(sprite, 120, 120, 216, arc_2, 95, 95, 10, ALT_TEXT_COLOUR);
^~~~~~~~~~~~~~~
include/lcd.h:109:55: note: suggested alternative: 'TAB_COLOUR'
fillArc(sprite, 120, 120, 216, arc_2, 95, 95, 10, ALT_TEXT_COLOUR);
^~~~~~~~~~~~~~~
TAB_COLOUR
include/lcd.h: In function 'void updateTemp(TFT_eSprite&, float)':
include/lcd.h:118:25: error: 'TEXT_COLOUR' was not declared in this scope
sprite.setTextColor(TEXT_COLOUR, TFT_TRANSPARENT);
^~~~~~~~~~~
include/lcd.h:118:25: note: suggested alternative: 'TAB_COLOUR'
sprite.setTextColor(TEXT_COLOUR, TFT_TRANSPARENT);
^~~~~~~~~~~
TAB_COLOUR
include/lcd.h: In function 'void updateHumidity(TFT_eSprite&, float)':
include/lcd.h:129:25: error: 'ALT_TEXT_COLOUR' was not declared in this scope
sprite.setTextColor(ALT_TEXT_COLOUR, TFT_TRANSPARENT);
^~~~~~~~~~~~~~~
include/lcd.h:129:25: note: suggested alternative: 'TAB_COLOUR'
sprite.setTextColor(ALT_TEXT_COLOUR, TFT_TRANSPARENT);
^~~~~~~~~~~~~~~
TAB_COLOUR
include/lcd.h: In function 'void updateScreen(TFT_eSprite&, TFT_eSprite&, TFT_eSprite&, TFT_eSprite&, TFT_eSprite&)':
include/lcd.h:146:25: error: 'BACKGROUND' was not declared in this scope
background.fillSprite(BACKGROUND);
^~~~~~~~~~
In file included from src/main.cpp:5:
include/ota.h: In function 'void initOTA()':
include/ota.h:4:24: error: 'DEVICE_NAME' was not declared in this scope
String host = String(DEVICE_NAME);
^~~~~~~~~~~
include/ota.h:9:26: error: 'OTA_PASSWORD' was not declared in this scope
ArduinoOTA.setPassword(OTA_PASSWORD);
^~~~~~~~~~~~
include/ota.h:9:26: note: suggested alternative: 'ETS_ASSERT'
ArduinoOTA.setPassword(OTA_PASSWORD);
^~~~~~~~~~~~
ETS_ASSERT
In file included from src/main.cpp:7:
include/mqtt.h: In function 'void initWiFi()':
include/mqtt.h:16:14: error: 'WIFI_SSID' was not declared in this scope
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
^~~~~~~~~
include/mqtt.h:16:14: note: suggested alternative: 'WIFI_STA'
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
^~~~~~~~~
WIFI_STA
include/mqtt.h:16:25: error: 'WIFI_PASSWORD' was not declared in this scope
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
^~~~~~~~~~~~~
include/mqtt.h:16:25: note: suggested alternative: 'WIFI_PS_NONE'
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
^~~~~~~~~~~~~
WIFI_PS_NONE
include/mqtt.h:20:18: error: 'LED_PIN' was not declared in this scope
digitalWrite(LED_PIN, HIGH);
^~~~~~~
include/mqtt.h:20:18: note: suggested alternative: 'LWIP_MIN'
digitalWrite(LED_PIN, HIGH);
^~~~~~~
LWIP_MIN
include/mqtt.h: In function 'void sendMQTTDiscoveryMsg(PubSubClient&, String, String)':
include/mqtt.h:33:31: error: 'DEVICE_NAME' was not declared in this scope
String name_string = String(DEVICE_NAME);
^~~~~~~~~~~
include/mqtt.h: In function 'void reconnectMQTT(PubSubClient&)':
include/mqtt.h:80:30: error: 'DEVICE_NAME' was not declared in this scope
String clientId = String(DEVICE_NAME);
^~~~~~~~~~~
include/mqtt.h:84:18: error: 'LED_PIN' was not declared in this scope
digitalWrite(LED_PIN, HIGH);
^~~~~~~
include/mqtt.h:84:18: note: suggested alternative: 'LWIP_MIN'
digitalWrite(LED_PIN, HIGH);
^~~~~~~
LWIP_MIN
include/mqtt.h:89:42: error: 'MQTT_USER' was not declared in this scope
if (client.connect(clientId.c_str(), MQTT_USER, MQTT_PASSWORD, availabilityTopic, 1, true, "offline")) {
^~~~~~~~~
include/mqtt.h:89:42: note: suggested alternative: 'MQTTPUBREC'
if (client.connect(clientId.c_str(), MQTT_USER, MQTT_PASSWORD, availabilityTopic, 1, true, "offline")) {
^~~~~~~~~
MQTTPUBREC
include/mqtt.h:89:53: error: 'MQTT_PASSWORD' was not declared in this scope
if (client.connect(clientId.c_str(), MQTT_USER, MQTT_PASSWORD, availabilityTopic, 1, true, "offline")) {
^~~~~~~~~~~~~
include/mqtt.h:89:53: note: suggested alternative: 'MQTT_VERSION'
if (client.connect(clientId.c_str(), MQTT_USER, MQTT_PASSWORD, availabilityTopic, 1, true, "offline")) {
^~~~~~~~~~~~~
MQTT_VERSION
include/mqtt.h: In function 'void initMQTT(PubSubClient&, std::function<void(char*, unsigned char*, unsigned int)>)':
include/mqtt.h:109:20: error: 'MQTT_SERVER' was not declared in this scope
client.setServer(MQTT_SERVER, 1883);
^~~~~~~~~~~
include/mqtt.h:109:20: note: suggested alternative: 'MQTTPUBREC'
client.setServer(MQTT_SERVER, 1883);
^~~~~~~~~~~
MQTTPUBREC
src/main.cpp: At global scope:
src/main.cpp:12:10: error: 'MSG_BUFFER_SIZE' was not declared in this scope
char msg[MSG_BUFFER_SIZE];
^~~~~~~~~~~~~~~
src/main.cpp:12:10: note: suggested alternative: 'INT_BUFFER_SIZE'
char msg[MSG_BUFFER_SIZE];
^~~~~~~~~~~~~~~
INT_BUFFER_SIZE
src/main.cpp: In function 'void setup()':
src/main.cpp:45:11: error: 'LED_PIN' was not declared in this scope
pinMode(LED_PIN, OUTPUT);
^~~~~~~
src/main.cpp:45:11: note: suggested alternative: 'LWIP_MIN'
pinMode(LED_PIN, OUTPUT);
^~~~~~~
LWIP_MIN
src/main.cpp:50:18: error: 'BACKGROUND' was not declared in this scope
tft.fillScreen(BACKGROUND);
^~~~~~~~~~
src/main.cpp:57:14: error: 'GMT_OFFSET' was not declared in this scope
configTime(GMT_OFFSET, DAYLIGHT_OFFSET, NTP_SERVER);
^~~~~~~~~~
src/main.cpp:57:14: note: suggested alternative: 'TFT_PASET'
configTime(GMT_OFFSET, DAYLIGHT_OFFSET, NTP_SERVER);
^~~~~~~~~~
TFT_PASET
src/main.cpp:57:26: error: 'DAYLIGHT_OFFSET' was not declared in this scope
configTime(GMT_OFFSET, DAYLIGHT_OFFSET, NTP_SERVER);
^~~~~~~~~~~~~~~
src/main.cpp:57:26: note: suggested alternative: 'SOC_I_D_OFFSET'
configTime(GMT_OFFSET, DAYLIGHT_OFFSET, NTP_SERVER);
^~~~~~~~~~~~~~~
SOC_I_D_OFFSET
src/main.cpp:57:43: error: 'NTP_SERVER' was not declared in this scope
configTime(GMT_OFFSET, DAYLIGHT_OFFSET, NTP_SERVER);
^~~~~~~~~~
src/main.cpp:57:43: note: suggested alternative: 'SNTP_SERVER_DNS'
configTime(GMT_OFFSET, DAYLIGHT_OFFSET, NTP_SERVER);
^~~~~~~~~~
SNTP_SERVER_DNS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant