const int ledPin = 25;
const int timerChannel = 0, freq = 5000, resolution = 8;
float Duty[] = {0, 50, 100, 255};
void setup() {
Serial.begin(115200);
ledcSetup(timerChannel, freq, resolution);
ledcAttachPin(ledPin, timerChannel);
}
int readValue;
void loop() {
ledcWrite(timerChannel, 1024);
//readValue = ledcRead(25);
//readValue = map(readValue, 0, 4095, 0, 255);
//Serial.println(readValue);
}