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.1.1
1. Add example [**Change_Interval**](examples/Change_Interval) and [**FakeAnalogWrite**](examples/FakeAnalogWrite)
2. Bump up version to sync with other TimerInterrupt Libraries. Modify Version String.
3. Install [**NRF52_TimerInterrupt** library](https://platformio.org/lib/show/11399/NRF52_TimerInterrupt) by using [Library Manager](https://platformio.org/lib/show/11399/NRF52_TimerInterrupt/installation). Search for **NRF52_TimerInterrupt** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
112
+
3. Install [**NRF52_TimerInterrupt** library](https://platformio.org/lib/show/11399/NRF52_TimerInterrupt)or [**NRF52_TimerInterrupt** library](https://platformio.org/lib/show/11399/NRF52_TimerInterrupt)by using [Library Manager](https://platformio.org/lib/show/11427/NRF52_TimerInterrupt/installation). Search for **NRF52_TimerInterrupt** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
108
113
4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html)
@@ -984,9 +990,137 @@ Time = 86645, Switch = Released
984
990
Time = 87646, Switch = Released
985
991
986
992
```
993
+
987
994
---
995
+
996
+
6. The following is the sample terminal output when running example [Change_Interval](examples/Change_Interval) to demonstrate how to change Timer Interval on-the-fly
997
+
998
+
```
999
+
Starting Change_Interval on NRF52840_FEATHER
1000
+
NRF52TimerInterrupt v1.1.1
1001
+
CPU Frequency = 64 MHz
1002
+
Starting ITimer0 OK, millis() = 1319
1003
+
Starting ITimer1 OK, millis() = 1319
1004
+
Time = 10001, Timer0Count = 17, , Timer1Count = 4
1005
+
Time = 20002, Timer0Count = 37, , Timer1Count = 9
1006
+
Changing Interval, Timer0 = 1000, Timer1 = 4000
1007
+
Time = 30003, Timer0Count = 47, , Timer1Count = 11
1008
+
Time = 40004, Timer0Count = 57, , Timer1Count = 14
1009
+
Changing Interval, Timer0 = 500, Timer1 = 2000
1010
+
Time = 50005, Timer0Count = 77, , Timer1Count = 19
1011
+
Time = 60006, Timer0Count = 97, , Timer1Count = 24
1012
+
Changing Interval, Timer0 = 1000, Timer1 = 4000
1013
+
Time = 70007, Timer0Count = 107, , Timer1Count = 26
1014
+
Time = 80008, Timer0Count = 117, , Timer1Count = 29
1015
+
Changing Interval, Timer0 = 500, Timer1 = 2000
1016
+
Time = 90009, Timer0Count = 137, , Timer1Count = 34
1017
+
Time = 100010, Timer0Count = 157, , Timer1Count = 39
1018
+
Changing Interval, Timer0 = 1000, Timer1 = 4000
1019
+
Time = 110011, Timer0Count = 167, , Timer1Count = 41
1020
+
Time = 120012, Timer0Count = 177, , Timer1Count = 44
1021
+
Changing Interval, Timer0 = 500, Timer1 = 2000
1022
+
Time = 130013, Timer0Count = 197, , Timer1Count = 49
1023
+
Time = 140014, Timer0Count = 217, , Timer1Count = 54
1024
+
Changing Interval, Timer0 = 1000, Timer1 = 4000
1025
+
Time = 150015, Timer0Count = 227, , Timer1Count = 56
1026
+
Time = 160016, Timer0Count = 237, , Timer1Count = 59
1027
+
Changing Interval, Timer0 = 500, Timer1 = 2000
1028
+
Time = 170017, Timer0Count = 257, , Timer1Count = 64
1029
+
Time = 180018, Timer0Count = 277, , Timer1Count = 69
1030
+
```
1031
+
988
1032
---
989
1033
1034
+
7. The following is the sample terminal output when running example [FakeAnalogWrite](examples/FakeAnalogWrite) to demonstrate how to use analogWrite to many pins to overcome the limitation of nRF52 analogWrite to only 4 pins or crash. Check [**Arduino Nano 33 BLE mbed os crashes when PWM on more than 3 digital pins**](https://forum.arduino.cc/index.php?topic=715883.0)
0 commit comments