diff --git a/README.txt b/README.txt index 486f7b2..210d911 100644 --- a/README.txt +++ b/README.txt @@ -9,6 +9,7 @@ It's based on an internal timer and it requires no external hardware. VERSION HISTORY +2017/01/27 - v. 1.2.7: added support for ATmega32U4 (thanks to Esteban Torre and piluex) 2016/05/21 - v. 1.2.6: fixed timestamp functions when we are in leap years (I hope definitely..) 2016/02/21 - v. 1.2.5: fixed a bug into the deltaT arithmetics that leads to double count the computation. 2016/02/14 - v. 1.2.4: updated to use with latest Arduino IDE branches (>=1.6.7) @@ -175,10 +176,14 @@ The library uses the Timer 0 because Timer 1 is a 16 bit counter that is a littl ATMEL Atmega644/1284 The library uses the Timer 2, so keep it in mind if you think to use PWM on phisical pins 20 & 21. +ATMEL ATmega32U4: +The library uses the Timer 3 on this chip. + ** I M P O R T A N T ** The library supports, due to rounding issues, only the following speed clocks: - Atmega644/1284, Atmega48/88/168/328, Atmega8, Atmega640/1280/1281/2560/2561: 1, 4, 8, and 16 MHz - Attiny25/45/85, Attiny24/44/84, Attiny2313: 1, 8, and 16 MHz +- Atmega32U4: only 16 MHz ******************************************************************** @@ -212,4 +217,4 @@ lesto - from forum ******************************************************************** -Last document revision: 2016/05/22 +Last document revision: 2017/01/27 \ No newline at end of file diff --git a/library.properties b/library.properties index b406f74..cf3a1e8 100755 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=swRTC -version=1.2.6 +version=1.2.7 author=Leonardo Miliani, lesto maintainer=Leonardo Miliani sentence=Software implementation of a Real-Time Clock for Arduino boards and Atmel microcontrollers. diff --git a/swRTC.h b/swRTC.h index 3093c5e..1914d84 100644 --- a/swRTC.h +++ b/swRTC.h @@ -63,8 +63,7 @@ #endif //RTC module is preset in: ATMEGA8, ATMEGAx44, ATMEGAx8, ATMEGAx0 -//RTC is NOT in: ATTINYx4, ATTINYx5, ATTINYx313 -//Not sure on: ATMEGA32u4 +//RTC is NOT in: ATTINYx4, ATTINYx5, ATTINYx313, ATMEGA32u4 #if defined (USE_INTERNAL_RTC) #if defined (ATTINYx4) || defined (ATTINYx313) || defined (ATTINYx5) || defined(ATMEGAxU) #error This MCU does NOT have the RTC module diff --git a/version.txt b/version.txt index 7e099ec..a77d7d9 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.2.6 \ No newline at end of file +1.2.7 \ No newline at end of file