Go Down

Topic: Problem with the servolotor library (Read 54 times) previous topic - next topic



I need help because I wanted to include the servomotor library ( with  #include <servo.h> but I have an error message :

" In file included from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Servo\src/Servo.h:63:0,

                 from C:\Users\nassk\Desktop\abcd\abcd.ino:2:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Servo\src/avr/ServoTimers.h:57:1: error: expected ',' or ';' before 'typedef'

 typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t;


C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\libraries\Servo\src/avr/ServoTimers.h:57:41: error: 'timer16_Sequence_t' does not name a type

 typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t;


exit status 1
Erreur de compilation pour la carte Arduino/Genuino Uno "

( sorry for my bad english , I'm french )

Thank you for every help.


Hi Arblosu, welcome to the forum.

You need to post your code so we can help you.
When you post it, use code tags.
If you do not know how to use code tags or what they are, then you should read the sticky post at the top of each forum named "How to use this forum - please read."

Go Up