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

Commit 57d1372

Browse files
authored
v1.2.1 to fix bug, etc.
### Releases v1.2.1 1. Fix `New Period` display bug. Check [random dropouts #4](khoih-prog/SAMD_Slow_PWM#4) 2. Display informational warning only when `_PWM_LOGLEVEL_` > 3 3. Update examples
1 parent 379f74e commit 57d1372

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

examples/ISR_16_PWMs_Array/ISR_16_PWMs_Array.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// These define's must be placed at the beginning before #include "ESP32_PWM.h"
2222
// _PWM_LOGLEVEL_ from 0 to 4
2323
// Don't define _PWM_LOGLEVEL_ > 0. Only for special ISR debugging only. Can hang the system.
24-
#define _PWM_LOGLEVEL_ 4
24+
#define _PWM_LOGLEVEL_ 3
2525

2626
#define USING_MICROS_RESOLUTION true //false
2727

examples/ISR_16_PWMs_Array_Complex/ISR_16_PWMs_Array_Complex.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// These define's must be placed at the beginning before #include "ESP32_PWM.h"
2222
// _PWM_LOGLEVEL_ from 0 to 4
2323
// Don't define _PWM_LOGLEVEL_ > 0. Only for special ISR debugging only. Can hang the system.
24-
#define _PWM_LOGLEVEL_ 4
24+
#define _PWM_LOGLEVEL_ 3
2525

2626
#define USING_MICROS_RESOLUTION true //false
2727

examples/ISR_16_PWMs_Array_Simple/ISR_16_PWMs_Array_Simple.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// These define's must be placed at the beginning before #include "ESP32_PWM.h"
2222
// _PWM_LOGLEVEL_ from 0 to 4
2323
// Don't define _PWM_LOGLEVEL_ > 0. Only for special ISR debugging only. Can hang the system.
24-
#define _PWM_LOGLEVEL_ 4
24+
#define _PWM_LOGLEVEL_ 3
2525

2626
#define USING_MICROS_RESOLUTION true //false
2727

examples/ISR_Changing_PWM/ISR_Changing_PWM.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// These define's must be placed at the beginning before #include "ESP32_PWM.h"
2222
// _PWM_LOGLEVEL_ from 0 to 4
2323
// Don't define _PWM_LOGLEVEL_ > 0. Only for special ISR debugging only. Can hang the system.
24-
#define _PWM_LOGLEVEL_ 4
24+
#define _PWM_LOGLEVEL_ 3
2525

2626
#define USING_MICROS_RESOLUTION true //false
2727

examples/ISR_Modify_PWM/ISR_Modify_PWM.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// These define's must be placed at the beginning before #include "ESP32_PWM.h"
2222
// _PWM_LOGLEVEL_ from 0 to 4
2323
// Don't define _PWM_LOGLEVEL_ > 0. Only for special ISR debugging only. Can hang the system.
24-
#define _PWM_LOGLEVEL_ 4
24+
#define _PWM_LOGLEVEL_ 3
2525

2626
#define USING_MICROS_RESOLUTION true //false
2727

@@ -83,19 +83,19 @@ void TimerHandler(uint alarm_num)
8383
uint32_t PWM_Pin = LED_BUILTIN;
8484

8585
// You can assign any interval for any timer here, in Hz
86-
float PWM_Freq1 = 1.0f;
86+
float PWM_Freq1 = 200.0f; //1.0f;
8787
// You can assign any interval for any timer here, in Hz
88-
float PWM_Freq2 = 2.0f;
88+
float PWM_Freq2 = 100.0f; //2.0f;
8989

9090
// You can assign any interval for any timer here, in microseconds
9191
uint32_t PWM_Period1 = 1000000 / PWM_Freq1;
9292
// You can assign any interval for any timer here, in microseconds
9393
uint32_t PWM_Period2 = 1000000 / PWM_Freq2;
9494

9595
// You can assign any duty_cycle for any PWM here, from 0-100
96-
float PWM_DutyCycle1 = 50.0;
96+
float PWM_DutyCycle1 = 1.0f; //50.0f;
9797
// You can assign any duty_cycle for any PWM here, from 0-100
98-
float PWM_DutyCycle2 = 90.0;
98+
float PWM_DutyCycle2 = 5.55f; //90.0f;
9999

100100
// Channel number used to identify associated channel
101101
int channelNum;

examples/multiFileProject/multiFileProject.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#error This code is intended to run on the MBED RP2040 mbed_nano or mbed_rp2040 platform! Please check your Tools->Board setting.
1616
#endif
1717

18-
#define MBED_RP2040_SLOW_PWM_VERSION_MIN_TARGET "RP2040_Slow_PWM v1.2.0"
19-
#define MBED_RP2040_SLOW_PWM_VERSION_MIN 1002000
18+
#define MBED_RP2040_SLOW_PWM_VERSION_MIN_TARGET "RP2040_Slow_PWM v1.2.1"
19+
#define MBED_RP2040_SLOW_PWM_VERSION_MIN 1002001
2020

2121
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
2222
#include "MBED_RP2040_Slow_PWM.h"

0 commit comments

Comments
 (0)