We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 835be18 commit d69c715Copy full SHA for d69c715
examples/Peripherals/HardwareTimer/PWM_FullConfiguration/PWM_FullConfiguration.ino
@@ -52,7 +52,7 @@ void setup()
52
53
MyTim->setMode(channel, TIMER_OUTPUT_COMPARE_PWM1, pin);
54
// MyTim->setPrescaleFactor(8); // Due to setOverflow with MICROSEC_FORMAT, prescaler will be computed automatically based on timer input clock
55
- MyTim->setOverflow(100000, MICROSEC_FORMAT); // 10000 microseconds = 10 milliseconds
+ MyTim->setOverflow(100000, MICROSEC_FORMAT); // 100000 microseconds = 100 milliseconds
56
MyTim->setCaptureCompare(channel, 50, PERCENT_COMPARE_FORMAT); // 50%
57
MyTim->attachInterrupt(Update_IT_callback);
58
MyTim->attachInterrupt(channel, Compare_IT_callback);
0 commit comments