bruce9717 - I have been testing my new HALMET b...

I have been testing my new HALMET board using the example firmware. I have a problem with the PWM signal that is supposed to be output on pin 33. Here is the code from the example on GitHub: #ifdef ENABLE_TEST_OUTPUT_PIN pinMode(kTestOutputPin, OUTPUT); // Set the LEDC peripheral to a 13-bit resolution ledcAttach(kTestOutputPin, kTestOutputFrequency, 13); // Set the duty cycle to 50% // Duty cycle value is calculated based on the resolution // For 13-bit resolution, max value is 8191, so 50% is 4096 ledcWrite(0, 4096); #endif shouldn’t the last line be: ledcWrite(kTestOutputPin, 4096)
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?