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

Commit d45bf1f

Browse files
authored
v1.2.0 to fix multiple-definitions linker error
### Releases v1.2.0 1. Fix `multiple-definitions` linker error. Drop `src_cpp` and `src_h` directories 2. Improve accuracy by using `float`, instead of `uint32_t` for `dutycycle`. Check [Change Duty Cycle #1](khoih-prog/ESP8266_PWM#1 (comment)) 3. 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) 4. Optimize library code by using `reference-passing` instead of `value-passing` 5. Add example [multiFileProject](examples/multiFileProject) to demo for multiple-file project 6. Update examples accordingly
1 parent 82d8d78 commit d45bf1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,12 @@ void setup()
288288
// Don't define _PWM_LOGLEVEL_ > 0. Only for special ISR debugging only. Can hang the system.
289289
#define _PWM_LOGLEVEL_ 4
290290
291-
#define USING_MICROS_RESOLUTION true //false
291+
#define USING_MICROS_RESOLUTION true //false
292292
293+
// Default is true, uncomment to false
294+
//#define CHANGING_PWM_END_OF_CYCLE false
295+
296+
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
293297
#include "RP2040_Slow_PWM.h"
294298
295299
#include <SimpleTimer.h> // https://github.com/jfturcot/SimpleTimer

0 commit comments

Comments
 (0)