This commit is contained in:
2025-02-19 11:00:53 +01:00
parent bbfd4965d8
commit e9231e92aa

View File

@@ -222,7 +222,7 @@ The purple text are compiler flags. They tell the compiler what to do with certa
| #elif | Same as #if except using this you can have multiple cases |
| #include | Include a library into the code |
| #else | If none of the cases are met this is used |
| #error | Throws an error during compiling when it is compiled |
| #error | Throws an error during compiling when ran by the compiler |
| #endif | end of a #if, #elif or #else |
### Setting the correct library
@@ -691,7 +691,7 @@ At the end of the program I added the ESPNow Initialisation function and the cal
When I compile it now it should work. Except that it doesn't work.
![alt text](image-34.jpg)
From looking at the errors it looked like the PWMServo library wasn't compatible with the ESP32. When looking around on google from PWMservo libraries for the ESP32 I found the correct library on [this](https://randomnerdtutorials.com/esp32-servo-motor-web-server-arduino-ide/) website. When I added that I needed to edit the class creation to the correct library and then it finaly compiled!
From looking at the errors it looked like the PWMServo library wasn't compatible with the ESP32. When looking around on google from PWMservo libraries for the ESP32 I found the correct library on [this](https://randomnerdtutorials.com/esp32-servo-motor-web-server-arduino-ide/) website. When I added that I needed to edit the class creation to the correct library and then it finaly compiles!
From:
![alt text](image-35.jpg)