This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
32c65d7
commit c5c1aa5
Showing
21 changed files
with
2,151 additions
and
1,773 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/**************************************************************************************************************************** | ||
multiFileProject.cpp | ||
For nRF52-based boards using Adafruit_nRF52_Arduino core | ||
Written by Khoi Hoang | ||
Built by Khoi Hoang https://github.com/khoih-prog/nRF52_Slow_PWM | ||
Licensed under MIT license | ||
*****************************************************************************************************************************/ | ||
|
||
// To demo how to include files in multi-file Projects | ||
|
||
#include "multiFileProject.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/**************************************************************************************************************************** | ||
multiFileProject.h | ||
For nRF52-based boards using Adafruit_nRF52_Arduino core | ||
Written by Khoi Hoang | ||
Built by Khoi Hoang https://github.com/khoih-prog/nRF52_Slow_PWM | ||
Licensed under MIT license | ||
*****************************************************************************************************************************/ | ||
|
||
// To demo how to include files in multi-file Projects | ||
|
||
#pragma once | ||
|
||
#define USING_MICROS_RESOLUTION true //false | ||
|
||
// Default is true, uncomment to false | ||
//#define CHANGING_PWM_END_OF_CYCLE false | ||
|
||
// Can be included as many times as necessary, without `Multiple Definitions` Linker Error | ||
#include "Teensy_Slow_PWM.hpp" |
Oops, something went wrong.