You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
### Releases v1.2.1
1. DutyCycle to be optionally updated at the end current PWM period instead of immediately. Check [DutyCycle to be updated at the end current PWM period #2](khoih-prog/ESP8266_PWM#2)
Copy file name to clipboardexpand all lines: README.md
+61-50
Original file line number
Diff line number
Diff line change
@@ -288,7 +288,10 @@ Before using any Timer, you have to make sure the Timer has not been used by any
288
288
// Don't define _PWM_LOGLEVEL_ > 0. Only for special ISR debugging only. Can hang the system.
289
289
#define _PWM_LOGLEVEL_ 4
290
290
291
-
#define USING_MICROS_RESOLUTION true //false
291
+
#define USING_MICROS_RESOLUTION true //false
292
+
293
+
// Default is true, uncomment to false
294
+
//#define CHANGING_PWM_END_OF_CYCLE false
292
295
293
296
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
294
297
#include "ESP32_PWM.h"
@@ -718,9 +721,8 @@ void loop()
718
721
The following is the sample terminal output when running example [ISR_16_PWMs_Array_Complex](examples/ISR_16_PWMs_Array_Complex) to demonstrate the accuracy of ISR Hardware PWM-channels, **especially when system is very busy**. The ISR PWM-channels is **running exactly according to corresponding programmed periods and duty-cycles**
719
722
720
723
721
-
```
722
-
Starting ISR_16_PWMs_Array_Complex on ESP32_DEV
723
-
ESP32_PWM v1.2.0
724
+
```Starting ISR_16_PWMs_Array_Complex on ESP32_DEV
The following is the sample terminal output when running example [ISR_16_PWMs_Array_Simple](examples/ISR_16_PWMs_Array_Simple) to demonstrate how to use multiple Hardware PWM channels.
@@ -1051,7 +1062,7 @@ Submit issues to: [ESP32_PWM issues](https://github.com/khoih-prog/ESP32_PWM/iss
1051
1062
6. Fix `multiple-definitions` linker error. Drop `src_cpp` and `src_h` directories
1052
1063
7. Add example [multiFileProject](examples/multiFileProject) to demo for multiple-file project
1053
1064
8. Improve accuracy by using `double`, instead of `uint32_t` for `dutycycle`, `period`. Check [Change Duty Cycle #1](https://github.com/khoih-prog/ESP8266_PWM/issues/1#issuecomment-1024969658)
1054
-
1065
+
9. DutyCycle to be optionally updated at the end current PWM period instead of immediately. Check [DutyCycle to be updated at the end current PWM period #2](https://github.com/khoih-prog/ESP8266_PWM/issues/2)
Copy file name to clipboardexpand all lines: changelog.md
+5
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
## Table of Contents
13
13
14
14
*[Changelog](#changelog)
15
+
*[Releases v1.2.1](#releases-v121)
15
16
*[Releases v1.2.0](#releases-v120)
16
17
*[Releases v1.1.1](#releases-v111)
17
18
*[Releases v1.1.0](#releases-v110)
@@ -23,6 +24,10 @@
23
24
24
25
## Changelog
25
26
27
+
### Releases v1.2.1
28
+
29
+
1. DutyCycle to be optionally updated at the end current PWM period instead of immediately. Check [DutyCycle to be updated at the end current PWM period #2](https://github.com/khoih-prog/ESP8266_PWM/issues/2)
30
+
26
31
### Releases v1.2.0
27
32
28
33
1. Fix `multiple-definitions` linker error. Drop `src_cpp` and `src_h` directories
"description": "This library enables you to use Interrupt from Hardware Timers on an ESP32, ESP32_S2 or ESP32_C3-based board to create and output PWM to pins. It now supports 16 ISR-based synchronized PWM channels, while consuming only 1 Hardware Timer. PWM interval can be very long (uint32_t millisecs). The most important feature is they're ISR-based PWM channels. Therefore, their executions are not blocked by bad-behaving functions or tasks. This important feature is absolutely necessary for mission-critical tasks. These hardware PWM channels, using interrupt, still work even if other functions are blocking. Moreover, they are much more precise (certainly depending on clock frequency accuracy) than other software timers using millis() or micros(). That's necessary if you need to measure some data requiring better accuracy. Now you can change the PWM settings on-the-fly",
Copy file name to clipboardexpand all lines: library.properties
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
name=ESP32_PWM
2
-
version=1.2.0
2
+
version=1.2.1
3
3
author=Khoi Hoang <khoih.prog@gmail.com>
4
4
maintainer=Khoi Hoang <khoih.prog@gmail.com>
5
5
sentence=This library enables you to use Interrupt from Hardware Timers on an ESP32, ESP32_S2 or ESP32_C3-based board to create and output PWM to pins.
0 commit comments