<div class=”quote”><p>Quote from moreause on October 23, 2022
i haven’t check the code
but when i use the Arduino compiler most of the time
it tell you where the bug is
does it even run ??
do you have in your library the file your trying to include at the beginning ??
</p></div>
Yep libraries all installed. this is the error list…
Arduino: 1.8.19 (Windows 10), Board: “DOIT ESP32 DEVKIT V1, 80MHz, 921600, None”
In file included from C:\Users\Anthony\AppData\Local\Arduino15\packages\esp32\hardware\esp32.0.6\cores\esp32/esp32-hal.h:53:0,
from C:\Users\Anthony\AppData\Local\Arduino15\packages\esp32\hardware\esp32.0.6\cores\esp32/Arduino.h:35,
from sketch\Patrol_Torque.ino.cpp:1:
C:\Users\Anthony\AppData\Local\Arduino15\packages\esp32\hardware\esp32.0.6\cores\esp32/esp32-hal-gpio.h:48:27: error: expected unqualified-id before numeric constant
#define ANALOG 0xC0
^
C:\Users\Anthony\Documents\Arduino\Patrol_Torque\Patrol_Torque.ino:27:14: note: in expansion of macro ‘ANALOG’
const String ANALOG = “a”;
^
Patrol_Torque:49:21: error: conversion from ‘int’ to ‘String’ is ambiguous
};
^
In file included from C:\Users\Anthony\AppData\Local\Arduino15\packages\esp32\hardware\esp32.0.6\cores\esp32/Arduino.h:146:0,
from sketch\Patrol_Torque.ino.cpp:1:
C:\Users\Anthony\AppData\Local\Arduino15\packages\esp32\hardware\esp32.0.6\cores\esp32/WString.h:59:9: note: candidate: String::String(const __FlashStringHelper*) <near match>
String(const __FlashStringHelper *str);
^
C:\Users\Anthony\AppData\Local\Arduino15\packages\esp32\hardware\esp32.0.6\cores\esp32/WString.h:59:9: note: conversion of argument 1 would be ill-formed:
Patrol_Torque:49:21: error: invalid conversion from ‘int’ to ‘const __FlashStringHelper*’ [-fpermissive]
};
^
In file included from C:\Users\Anthony\AppData\Local\Arduino15\packages\esp32\hardware\esp32.0.6\cores\esp32/Arduino.h:146:0,
from sketch\Patrol_Torque.ino.cpp:1:
C:\Users\Anthony\AppData\Local\Arduino15\packages\esp32\hardware\esp32.0.6\cores\esp32/WString.h:57:9: note: candidate: String::String(const char*) <near match>
String(const char *cstr = “”);
^
C:\Users\Anthony\AppData\Local\Arduino15\packages\esp32\hardware\esp32.0.6\cores\esp32/WString.h:57:9: note: conversion of argument 1 would be ill-formed:
Patrol_Torque:49:21: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
};
^
C:\Users\Anthony\Documents\Arduino\Patrol_Torque\Patrol_Torque.ino: In function ‘void setup()’:
Patrol_Torque:84:17: error: ‘initSensors’ was not declared in this scope
initSensors();
^
C:\Users\Anthony\Documents\Arduino\Patrol_Torque\Patrol_Torque.ino: In function ‘void loop()’:
Patrol_Torque:104:34: error: ‘processCommand’ was not declared in this scope
processCommand(fromTorque);
^
Patrol_Torque:115:37: error: a function-definition is not allowed here before ‘{‘ token
void processCommand(String command) {
^
Patrol_Torque:271:1: error: expected ‘}’ at end of input
}
^
exit status 1
conversion from ‘int’ to ‘String’ is ambiguous
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
|