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

Commit

Permalink
v1.0.6 to fix platform
Browse files Browse the repository at this point in the history
### Releases v1.0.6

1. Fix platform in `library.json`
  • Loading branch information
khoih-prog authored Oct 22, 2021
1 parent cb03fb1 commit 99b86d2
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 84 deletions.
40 changes: 21 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ The catch is **your function is now part of an ISR (Interrupt Service Routine),
2. [`Arduino mbed_rp2040 core 2.5.2+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
3. [`Earle Philhower's arduino-pico core v1.9.5+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)

4. [`Timezone_Generic library v1.7.0+`](https://github.com/khoih-prog/Timezone_Generic) to use examples using Timezone. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/Timezone_Generic.svg?)](https://www.ardu-badge.com/Timezone_Generic)
4. [`Timezone_Generic library v1.7.1+`](https://github.com/khoih-prog/Timezone_Generic) to use examples using Timezone. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/Timezone_Generic.svg?)](https://www.ardu-badge.com/Timezone_Generic)
5. [`WiFiNINA_Generic library v1.8.13+`](https://github.com/khoih-prog/WiFiNINA_Generic) to use WiFiNINA modules/shields. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiNINA_Generic.svg?)](https://www.ardu-badge.com/WiFiNINA_Generic) if using `WiFiNINA_Generic` library for Nano-RP2040-Connect boards.

6. Depending on which Ethernet card/module/shield you're using:
Expand Down Expand Up @@ -775,8 +775,8 @@ The following is the sample terminal output when running example [RP2040_RTC_Tim

```
Start RP2040_RTC_Time_Ethernet on RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library
RP2040_RTC v1.0.5
Timezone_Generic v1.7.0
RP2040_RTC v1.0.6
Timezone_Generic v1.7.1
[EWS] =========== USE_ETHERNET_LARGE ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
Expand Down Expand Up @@ -819,8 +819,8 @@ The following is the sample terminal output when running example [RP2040_RTC_Tim

```
Start RP2040_RTC_Time_Ethernet on RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library
RP2040_RTC v1.0.5
Timezone_Generic v1.7.0
RP2040_RTC v1.0.6
Timezone_Generic v1.7.1
[EWS] =========== USE_ETHERNET_LARGE ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 3
Expand Down Expand Up @@ -862,8 +862,8 @@ The following is the sample terminal output when running example [RP2040_RTC_Tim

```
Start RP2040_RTC_Time_WiFiNINA on MBED NANO_RP2040_CONNECT with WiFiNINA using WiFiNINA_Generic Library
RP2040_RTC v1.0.5
Timezone_Generic v1.7.0
RP2040_RTC v1.0.6
Timezone_Generic v1.7.1
Connecting to WPA SSID: HueNet1
You're connected to the network, IP = 192.168.2.153
Packet received
Expand All @@ -889,8 +889,8 @@ The following is the sample terminal output when running example [RP2040_RTC_Ala

```
Start RP2040_RTC_Alarm_Ethernet on RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library
RP2040_RTC v1.0.5
Timezone_Generic v1.7.0
RP2040_RTC v1.0.6
Timezone_Generic v1.7.1
[EWS] =========== USE_ETHERNET_LARGE ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
Expand Down Expand Up @@ -940,8 +940,8 @@ Alarm @

```
Start RP2040_RTC_Alarm_Ethernet on RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library
RP2040_RTC v1.0.5
Timezone_Generic v1.7.0
RP2040_RTC v1.0.6
Timezone_Generic v1.7.1
[EWS] =========== USE_ETHERNET_LARGE ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
Expand Down Expand Up @@ -992,8 +992,8 @@ The following is the sample terminal output when running example [RP2040_RTC_Ala

```
Start RP2040_RTC_Alarm_Ethernet on MBED RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library
RP2040_RTC v1.0.5
Timezone_Generic v1.7.0
RP2040_RTC v1.0.6
Timezone_Generic v1.7.1
[EWS] =========== USE_ETHERNET_LARGE ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 3
Expand Down Expand Up @@ -1053,8 +1053,8 @@ Alarm @

```
Start RP2040_RTC_Alarm_Ethernet on RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library
RP2040_RTC v1.0.5
Timezone_Generic v1.7.0
RP2040_RTC v1.0.6
Timezone_Generic v1.7.1
[EWS] =========== USE_ETHERNET_LARGE ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
Expand Down Expand Up @@ -1106,8 +1106,8 @@ The following is the sample terminal output when running example [RP2040_RTC_Ala

```
Start RP2040_RTC_Alarm_WiFiNINA on MBED NANO_RP2040_CONNECT with WiFiNINA using WiFiNINA_Generic Library
RP2040_RTC v1.0.5
Timezone_Generic v1.7.0
RP2040_RTC v1.0.6
Timezone_Generic v1.7.1
Connecting to WPA SSID: HueNet1
You're connected to the network, IP = 192.168.2.153
Packet received
Expand Down Expand Up @@ -1139,8 +1139,8 @@ Alarm @

```
Start RP2040_RTC_Alarm_WiFiNINA on MBED NANO_RP2040_CONNECT with WiFiNINA using WiFiNINA_Generic Library
RP2040_RTC v1.0.5
Timezone_Generic v1.7.0
RP2040_RTC v1.0.6
Timezone_Generic v1.7.1
Please upgrade the firmware
Connecting to WPA SSID: HueNet1
You're connected to the network, IP = 192.168.2.153
Expand Down Expand Up @@ -1205,11 +1205,13 @@ Many thanks for everyone for bug reporting, new feature suggesting, testing and

1. Thanks to [kenb2054](https://github.com/kenb2054) to report bugs in [Libraries updated to support new RP2040-based boards (RASPBERRY_PI_PICO, etc.) #43](https://forum.arduino.cc/t/libraries-updated-to-support-new-rp2040-based-boards-raspberry-pi-pico-etc/860353/43) leading to v1.0.4
2. Thanks to [josephchrzempiec](https://github.com/josephchrzempiec) to report bugs leading to v1.0.5
3. Thanks to [josephchrzempiec](https://github.com/josephchrzempiec) to create the PR [Correct platform name #2](https://github.com/khoih-prog/RP2040_RTC/pull/2) leading to v1.0.6

<table>
<tr>
<td align="center"><a href="https://github.com/kenb2054"><img src="https://github.com/kenb2054.png" width="100px;" alt="kenb2054"/><br /><sub><b>kenb2054</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/josephchrzempiec"><img src="https://github.com/josephchrzempiec.png" width="100px;" alt="josephchrzempiec"/><br /><sub><b>josephchrzempiec</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/maxgerhardt"><img src="https://github.com/maxgerhardt.png" width="100px;" alt="maxgerhardt"/><br /><sub><b>Maximilian Gerhardt</b></sub></a><br /></td>
</tr>
</table>

Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Releases v1.0.6](#releases-v106)
* [Releases v1.0.5](#releases-v105)
* [Releases v1.0.4](#releases-v104)
* [Releases v1.0.3](#releases-v103)
Expand All @@ -24,6 +25,10 @@

## Changelog

### Releases v1.0.6

1. Fix platform in `library.json`

### Releases v1.0.5

1. Fix examples' issue with Nano_RP2040_Connect
Expand Down
10 changes: 0 additions & 10 deletions examples/Alarm/RP2040_RTC_Alarm/RP2040_RTC_Alarm.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_RTC
Licensed under MIT license
Version: 1.0.5
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/06/2021 Initial release to support RP2040-based boards using internal RTC
1.0.1 K Hoang 14/06/2021 Add mbed_nano architecture to library.properties
1.0.2 K Hoang 16/06/2021 Fix bug in display alarm time
1.0.3 K Hoang 23/06/2021 Add simple example with manual time input
1.0.4 K Hoang 26/06/2021 Using TimeLib instead of Time
1.0.5 K Hoang 30/09/2021 Fix examples' issue with Nano_RP2040_Connect
*****************************************************************************************************************************/

// Important notes: Currently, RP2040-based boards RTC has no battery backup. So the time will be lost when power down
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_RTC
Licensed under MIT license
Version: 1.0.5
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/06/2021 Initial release to support RP2040-based boards using internal RTC
1.0.1 K Hoang 14/06/2021 Add mbed_nano architecture to library.properties
1.0.2 K Hoang 16/06/2021 Fix bug in display alarm time
1.0.3 K Hoang 23/06/2021 Add simple example with manual time input
1.0.4 K Hoang 26/06/2021 Using TimeLib instead of Time
1.0.5 K Hoang 30/09/2021 Fix examples' issue with Nano_RP2040_Connect
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_RTC
Licensed under MIT license
Version: 1.0.5
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/06/2021 Initial release to support RP2040-based boards using internal RTC
1.0.1 K Hoang 14/06/2021 Add mbed_nano architecture to library.properties
1.0.2 K Hoang 16/06/2021 Fix bug in display alarm time
1.0.3 K Hoang 23/06/2021 Add simple example with manual time input
1.0.4 K Hoang 26/06/2021 Using TimeLib instead of Time
1.0.5 K Hoang 30/09/2021 Fix examples' issue with Nano_RP2040_Connect
*****************************************************************************************************************************/

#include "defines.h"
Expand Down
10 changes: 0 additions & 10 deletions examples/Time/RP2040_RTC_Time/RP2040_RTC_Time.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_RTC
Licensed under MIT license
Version: 1.0.5
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/06/2021 Initial release to support RP2040-based boards using internal RTC
1.0.1 K Hoang 14/06/2021 Add mbed_nano architecture to library.properties
1.0.2 K Hoang 16/06/2021 Fix bug in display alarm time
1.0.3 K Hoang 23/06/2021 Add simple example with manual time input
1.0.4 K Hoang 26/06/2021 Using TimeLib instead of Time
1.0.5 K Hoang 30/09/2021 Fix examples' issue with Nano_RP2040_Connect
*****************************************************************************************************************************/

// Important notes: Currently, RP2040-based boards RTC has no battery backup. So the time will be lost when power down
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_RTC
Licensed under MIT license
Version: 1.0.5
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/06/2021 Initial release to support RP2040-based boards using internal RTC
1.0.1 K Hoang 14/06/2021 Add mbed_nano architecture to library.properties
1.0.2 K Hoang 16/06/2021 Fix bug in display alarm time
1.0.3 K Hoang 23/06/2021 Add simple example with manual time input
1.0.4 K Hoang 26/06/2021 Using TimeLib instead of Time
1.0.5 K Hoang 30/09/2021 Fix examples' issue with Nano_RP2040_Connect
*****************************************************************************************************************************/

// Important notes: Currently, RP2040-based boards RTC has no battery backup. So the time will be lost when power down
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_RTC
Licensed under MIT license
Version: 1.0.5
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 13/06/2021 Initial release to support RP2040-based boards using internal RTC
1.0.1 K Hoang 14/06/2021 Add mbed_nano architecture to library.properties
1.0.2 K Hoang 16/06/2021 Fix bug in display alarm time
1.0.3 K Hoang 23/06/2021 Add simple example with manual time input
1.0.4 K Hoang 26/06/2021 Using TimeLib instead of Time
1.0.5 K Hoang 30/09/2021 Fix examples' issue with Nano_RP2040_Connect
*****************************************************************************************************************************/

// Important notes: Currently, RP2040-based boards RTC has no battery backup. So the time will be lost when power down
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "RP2040_RTC",
"version": "1.0.5",
"version": "1.0.6",
"keywords": "timing, device, rtc, control, timer, interrupt, alarm, utc, ntp, isr, isr-based, hardware-timer, mission-critical, accuracy, precise, non-blocking, mbed, rpi-pico, rp2040, nano-rp2040-connect",
"description": "This library enables you to use RTC from RP2040-based boards such as Nano_RP2040_Connect, RASPBERRY_PI_PICO. This RP204-based RTC, using Interrupt, has no battery backup. Time will be lost when powered down. To need NTP-client to update RTC every start-up.",
"authors":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=RP2040_RTC
version=1.0.5
version=1.0.6
author=Khoi Hoang <[email protected]>
maintainer=Khoi Hoang <[email protected]>
sentence=This library enables you to use RTC from RP2040-based boards such as Nano_RP2040_Connect, RASPBERRY_PI_PICO
Expand Down
3 changes: 2 additions & 1 deletion src/DateTime_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_RTC
Licensed under MIT license
Version: 1.0.5
Version: 1.0.6
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -16,6 +16,7 @@
1.0.3 K Hoang 23/06/2021 Add simple example with manual time input
1.0.4 K Hoang 26/06/2021 Using TimeLib instead of Time
1.0.5 K Hoang 30/09/2021 Fix examples' issue with Nano_RP2040_Connect
1.0.6 K Hoang 22/10/2021 Fix platform in library.json for PIO
*****************************************************************************************************************************/

#pragma once
Expand Down
7 changes: 5 additions & 2 deletions src/RP2040_RTC.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Built by Khoi Hoang https://github.com/khoih-prog/RP2040_RTC
Licensed under MIT license
Version: 1.0.5
Version: 1.0.6
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -15,19 +15,22 @@
1.0.3 K Hoang 23/06/2021 Add simple example with manual time input
1.0.4 K Hoang 26/06/2021 Using TimeLib instead of Time
1.0.5 K Hoang 30/09/2021 Fix examples' issue with Nano_RP2040_Connect
1.0.6 K Hoang 22/10/2021 Fix platform in library.json for PIO
*****************************************************************************************************************************/

#pragma once

#ifndef RP2040_RTC_H
#define RP2040_RTC_H

#define RP2040_RTC_VERSION "RP2040_RTC v1.0.5"
#define RP2040_RTC_VERSION "RP2040_RTC v1.0.6"

#if !defined(RTC_DEBUG)
#define RTC_DEBUG false
#endif

#include <Arduino.h>

extern "C"
{
typedef void(* rtc_callback_t )(void);
Expand Down

0 comments on commit 99b86d2

Please sign in to comment.