Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 1928c71

Browse files
authored
Update ISR_Changing_PWM.ino
1 parent e18d37a commit 1928c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ISR_Changing_PWM/ISR_Changing_PWM.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void loop()
143143
#else
144144
#if USING_MICROS_RESOLUTION
145145
// Or using period in microsecs resolution
146-
channelNum = ISR_PWM.setPWM_Period(PWM_Pin, PWM_Freq1, PWM_DutyCycle1);
146+
channelNum = ISR_PWM.setPWM_Period(PWM_Pin, PWM_Period1, PWM_DutyCycle1);
147147
#else
148148
// Or using period in millisecs resolution
149149
channelNum = ISR_PWM.setPWM_Period(PWM_Pin, PWM_Period1 / 1000, PWM_DutyCycle1);
@@ -164,7 +164,7 @@ void loop()
164164
#else
165165
#if USING_MICROS_RESOLUTION
166166
// Or using period in microsecs resolution
167-
channelNum = ISR_PWM.setPWM_Period(PWM_Pin, PWM_Freq2, PWM_DutyCycle2);
167+
channelNum = ISR_PWM.setPWM_Period(PWM_Pin, PWM_Period2, PWM_DutyCycle2);
168168
#else
169169
// Or using period in millisecs resolution
170170
channelNum = ISR_PWM.setPWM_Period(PWM_Pin, PWM_Period2 / 1000, PWM_DutyCycle2);

0 commit comments

Comments
 (0)