I didn't get it to work properly, after some more searching I found another library:
https://github.com/Dlloydev/ESP32-ESP32S2-AnalogWrite
Works like a charm!
I used this code to test it, also easy writing with how its setup.
#include <pwmWrite.h>
Pwm pwm = Pwm();
const int servoPin3 = 3;
const int servoPin5 = 5;
const int servoPin7 = 7;
const int servoPin9 = 9;
void setup() {
}
void loop() {
pwm.writeServo(servoPin3, 180);
pwm.writeServo(servoPin5, 0);
pwm.writeServo(servoPin7, 180);
pwm.writeServo(servoPin9, 0);
delay(1000);
}
But I wanted to thankyou anyway because of your kindness for helping me when I asked a question!