Hello, I am trying to operate a "Moicro Servo SG90" on an ESP32 (Annex32 BLE CAN 1.48.22).
I'm using this code to experiment:
SERVO.SETUP 1, 4
SERVO 1, 0
FOR i=0 to 180
PAUSE 200
SERVO 1, i
NEXT I
I get the error message: „Syntax error line 1“ .
On an ESP8266 (1.44...) there are no problems.
Does somebody has any idea?
Greetings Peter
====================================================================
Hallo,
ich versuche an einem ESP32 (Annex32 BLE CAN 1.48.22) einen „Moicro Servo SG90“ zu betreiben.
Ich nutze zum experimentieren diesen Quelltext:
SERVO.SETUP 1, 4
SERVO 1, 0
FOR i=0 to 180
PAUSE 200
SERVO 1, i
NEXT i
Ich erhalte die Fehlermeldung: „Syntax error line 1“ .
Auf einem ESP8266 (1.44…) gibt es keine Probleme.
Hat jemand eine Idee?
Gruß Peter
SERVO.SETUP (accomplished)
-
- Posts: 2
- Joined: Sat Oct 30, 2021 5:43 pm
SERVO.SETUP (accomplished)
Last edited by Peter on Wed Apr 26, 2023 3:05 pm, edited 2 times in total.
- cicciocb
- Site Admin
- Posts: 2160
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 461 times
- Been thanked: 1435 times
- Contact:
Re: SERVO.SETUP / Syntax error
The servo commands are not available on the esp32. You must use the PWM
-
- Posts: 2
- Joined: Sat Oct 30, 2021 5:43 pm
Re: SERVO.SETUP / Syntax error
Thanks cicciocb,
I just discovered that too. I was actually looking at the wrong help file.
Forgiveness.
Sincerely, Peter
I just discovered that too. I was actually looking at the wrong help file.
Forgiveness.
Sincerely, Peter