See migration notes: https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html Scroll down to LEDC: "ledcAttach used to set up the LEDC pin (merged ledcSetup and ledcAttachPin functions)."