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.
Copy file name to clipboardExpand all lines: README.md
+29-25Lines changed: 29 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
9
9
<ahref="https://www.buymeacoffee.com/khoihprog6"title="Donate to my libraries using BuyMeACoffee"><imgsrc="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"alt="Donate to my libraries using BuyMeACoffee"style="height: 50px!important;width: 181px!important;" ></a>
10
10
<ahref="https://www.buymeacoffee.com/khoihprog6"title="Donate to my libraries using BuyMeACoffee"><imgsrc="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00"style="height: 20px!important;width: 200px!important;" ></a>
@@ -140,7 +142,7 @@ The catch is your function is now part of an ISR (Interrupt Service Routine), an
140
142
141
143
1.[`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [](https://github.com/arduino/Arduino/releases/latest)
142
144
2.[`Arduino megaAVR core 1.8.7+`](https://github.com/arduino/ArduinoCore-megaavr/releases) for Arduino megaAVR boards. Use Arduino Board Manager to install.
143
-
3.[`MegaCoreX megaAVR core 1.0.10+`](https://github.com/MCUdude/MegaCoreX/releases) for Arduino megaAVR boards. [](https://github.com/MCUdude/MegaCoreX/releases/latest). Follow [**How to install**](https://github.com/MCUdude/MegaCoreX#how-to-install).
145
+
3.[`MegaCoreX megaAVR core 1.1.0+`](https://github.com/MCUdude/MegaCoreX/releases) for Arduino megaAVR boards. [](https://github.com/MCUdude/MegaCoreX/releases/latest). Follow [**How to install**](https://github.com/MCUdude/MegaCoreX#how-to-install).
144
146
4. To use with certain example
145
147
-[`SimpleTimer library`](https://github.com/jfturcot/SimpleTimer) for [ISR_Timers_Array_Simple](examples/ISR_Timers_Array_Simple) and [ISR_16_Timers_Array_Complex](examples/ISR_16_Timers_Array_Complex) examples.
146
148
@@ -159,9 +161,9 @@ You can also use this link [ page.
162
-
2. Download the latest release `megaAVR_TimerInterrupt-master.zip`.
163
-
3. Extract the zip file to `megaAVR_TimerInterrupt-master` directory
164
-
4. Copy whole `megaAVR_TimerInterrupt-master` folder to Arduino libraries' directory such as `~/Arduino/libraries/`.
164
+
2. Download the latest release `megaAVR_TimerInterrupt-main.zip`.
165
+
3. Extract the zip file to `megaAVR_TimerInterrupt-main` directory
166
+
4. Copy whole `megaAVR_TimerInterrupt-main` folder to Arduino libraries' directory such as `~/Arduino/libraries/`.
165
167
166
168
### VS Code & PlatformIO:
167
169
@@ -179,7 +181,7 @@ The current library implementation, using `xyz-Impl.h` instead of standard `xyz.
179
181
180
182
You can include these `.hpp` files
181
183
182
-
```
184
+
```cpp
183
185
// Can be included as many times as necessary, without `Multiple Definitions` Linker Error
@@ -189,7 +191,7 @@ You can include these `.hpp` files
189
191
190
192
in many files. But be sure to use the following `.h` files **in just 1 `.h`, `.cpp` or `.ino` file**, which must **not be included in any other file**, to avoid `Multiple Definitions` Linker Error
191
193
192
-
```
194
+
```cpp
193
195
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
Starting ISR_16_Timers_Array_Complex on megaAVR Nano Every
787
-
megaAVR_TimerInterrupt v1.6.1
789
+
megaAVR_TimerInterrupt v1.7.0
788
790
CPU Frequency = 16 MHz
789
791
TCB Clock Frequency = 250KHz for lower accuracy but longer time
790
792
Starting ITimer1 OK, millis() = 11
@@ -870,7 +872,7 @@ The following is the sample terminal output when running example [Change_Interva
870
872
871
873
```
872
874
Starting Change_Interval_HF on megaAVR Nano Every
873
-
megaAVR_TimerInterrupt v1.6.1
875
+
megaAVR_TimerInterrupt v1.7.0
874
876
CPU Frequency = 16 MHz
875
877
TCB Clock Frequency = 16MHz for highest accuracy
876
878
[TISR] TCB 1
@@ -909,7 +911,7 @@ While software timer, **programmed for 2s, is activated after more than 10.000s
909
911
910
912
```
911
913
Starting ISR_16_Timers_Array_Complex on MegaCoreX ATmega4809
912
-
megaAVR_TimerInterrupt v1.6.1
914
+
megaAVR_TimerInterrupt v1.7.0
913
915
CPU Frequency = 16 MHz
914
916
TCB Clock Frequency = 16MHz for highest accuracy
915
917
[TISR] TCB1
@@ -1112,12 +1114,12 @@ Submit issues to: [megaAVR_TimerInterrupt issues](https://github.com/khoih-prog/
1112
1114
5. Fix some bugs in v1.0.0
1113
1115
6. Add more examples.
1114
1116
7. Similar library for ESP32, ESP8266, SAMD21/SAMD51, nRF52, Mbed-OS Nano-33-BLE, STM32
1115
-
8. Add support to ATmega4809-based boards, such as **Arduino UNO WiFi Rev2, AVR_NANO_EVERY, etc.**
1117
+
8. Add support to `ATmega4809-based` boards, such as **Arduino UNO WiFi Rev2, AVR_NANO_EVERY, etc.**
1116
1118
9. Selectable **TCB Clock 16MHz, 8MHz or 250KHz** depending on necessary accuracy
1117
1119
10. Fix `multiple-definitions` linker error
1118
1120
11. Optimize library code by using `reference-passing` instead of `value-passing`
1119
-
12. Add support to `MegaCoreX` core, including ATmega4809, ATmega4808, ATmega3209, ATmega3208, ATmega1609, ATmega1608, ATmega809 and ATmega808
1120
-
1121
+
12. Add support to `MegaCoreX` core, including `ATmega4809, ATmega4808, ATmega3209, ATmega3208, ATmega1609, ATmega1608, ATmega809 and ATmega808`
1122
+
13. Use `allman astyle` and add `utils`
1121
1123
1122
1124
---
1123
1125
---
@@ -1127,12 +1129,14 @@ Submit issues to: [megaAVR_TimerInterrupt issues](https://github.com/khoih-prog/
1127
1129
Many thanks for everyone for bug reporting, new feature suggesting, testing and contributing to the development of this library. Especially to these people who have directly or indirectly contributed to this [megaAVR_TimerInterrupt library](https://github.com/khoih-prog/megaAVR_TimerInterrupt)
1128
1130
1129
1131
1. Thanks to good work of [Miguel Wisintainer](https://github.com/tcpipchip) for initiating, inspriring, working with, developing, debugging, testing and maintaining.
1130
-
2. Thanks to [Bill Wuttke](https://github.com/wcwuttke) to report the issue [Interrupt interval 2X requested interval #1](https://github.com/khoih-prog/megaAVR_TimerInterrupt/issues/1) leading to new release v1.4.0 to fix bug in using higher frequencies than 250Hz.
1132
+
2. Thanks to [Bill Wuttke](https://github.com/wcwuttke) to report the issue [Interrupt interval 2X requested interval #1](https://github.com/khoih-prog/megaAVR_TimerInterrupt/issues/1) leading to new release v1.4.0 to fix bug in using higher frequencies than 250Hz
1133
+
3. Thanks to [cattledogGH](https://github.com/cattledogGH) to report the issue [Interrupt interval 2X requested interval #1](https://github.com/khoih-prog/megaAVR_TimerInterrupt/issues/1) leading to new release v1.7.0 to fix bug disabling `TCB0`
1131
1134
1132
1135
<table>
1133
1136
<tr>
1134
1137
<td align="center"><a href="https://github.com/tcpipchip"><img src="https://github.com/tcpipchip.png" width="100px;" alt="tcpipchip"/><br/><sub><b>⭐️ Miguel Wisintainer</b></sub></a><br/></td>
0 commit comments