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

Commit

Permalink
v1.10.1 to add support to RP2040W
Browse files Browse the repository at this point in the history
### Releases v1.10.1

1. Add support to `RP2040W` using `CYW43439 WiFi` with `arduino-pico` core
2. Update dependencies and documents
3. Update `Packages_Patches`
  • Loading branch information
khoih-prog committed Sep 25, 2022
1 parent 10df0f6 commit 32ffecd
Show file tree
Hide file tree
Showing 26 changed files with 1,288 additions and 238 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
Please ensure to specify the following:

* Arduino IDE version (e.g. 1.8.19) or Platform.io version
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.2, ESP8266 core v3.0.2, ArduinoCore-mbed v3.0.1, etc.)
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.5, ESP8266 core v3.0.2, ArduinoCore-mbed v3.3.0, etc.)
* Contextual information (e.g. what you were trying to achieve)
* Simplest possible steps to reproduce
* Anything that might be relevant in your opinion, such as:
Expand All @@ -28,12 +28,12 @@ Please ensure to specify the following:
```
Arduino IDE version: 1.8.19
RASPBERRY_PI_PICO board
ArduinoCore-mbed v3.0.1
ArduinoCore-mbed v3.3.0
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linux xy-Inspiron-3593 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Context:
I encountered an endless loop while trying to connect to Local WiFi.
I encountered a crash when using this library
Steps to reproduce:
1. ...
Expand Down
185 changes: 98 additions & 87 deletions README.md

Large diffs are not rendered by default.

7 changes: 7 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.10.1](#releases-v1101)
* [Releases v1.10.0](#releases-v1100)
* [Releases v1.9.1](#releases-v191)
* [Releases v1.9.0](#releases-v190)
Expand All @@ -33,6 +34,12 @@

## Changelog

### Releases v1.10.1

1. Add support to `RP2040W` using `CYW43439 WiFi` with `arduino-pico` core
2. Update dependencies and documents
3. Update `Packages_Patches`

### Releases v1.10.0

1. Add support to Portenta_H7 Ethernet and WiFi
Expand Down
34 changes: 15 additions & 19 deletions examples/Ethernet/BI_RTC_STM32_Ethernet/BI_RTC_STM32_Ethernet.ino
Original file line number Diff line number Diff line change
Expand Up @@ -223,25 +223,8 @@ void printDateTime(time_t t, const char *tz)
Serial.println(buf);
}

void setup()
void initEthernet()
{
Serial.begin(115200);
while (!Serial);

delay(200);

Serial.print(F("\nStart BI_RTC_STM32_Ethernet on ")); Serial.print(BOARD_NAME);
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
Serial.println(TIMEZONE_GENERIC_VERSION);

#if defined(TIMEZONE_GENERIC_VERSION_MIN)
if (TIMEZONE_GENERIC_VERSION_INT < TIMEZONE_GENERIC_VERSION_MIN)
{
Serial.print("Warning. Must use this example on Version equal or later than : ");
Serial.println(TIMEZONE_GENERIC_VERSION_MIN_TARGET);
}
#endif

#if !(USE_BUILTIN_ETHERNET || USE_UIP_ETHERNET)

ET_LOGWARN3(F("Board :"), BOARD_NAME, F(", setCsPin:"), USE_THIS_SS_PIN);
Expand Down Expand Up @@ -275,7 +258,20 @@ void setup()

// you're connected now, so print out the data
Serial.print(F("You're connected to the network, IP = "));
Serial.println(Ethernet.localIP());
Serial.println(Ethernet.localIP());
}

void setup()
{
Serial.begin(115200);
while (!Serial && millis() < 5000);

Serial.print(F("\nStart BI_RTC_Alarm_Ethernet_NTPClient_STM32 on ")); Serial.print(BOARD_NAME);
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
Serial.println(ETHERNET_WEBSERVER_STM32_VERSION);
Serial.println(TIMEZONE_GENERIC_VERSION);

initEthernet();

#if !(USING_INITIALIZED_TZ)

Expand Down
38 changes: 16 additions & 22 deletions examples/Ethernet/RTC_STM32_Ethernet/RTC_STM32_Ethernet.ino
Original file line number Diff line number Diff line change
Expand Up @@ -187,28 +187,8 @@ void printDateTime(time_t t, const char *tz)
Serial.println(buf);
}

void setup()
void initEthernet()
{
Serial.begin(115200);
while (!Serial);

delay(200);

Serial.print(F("\nStart RTC_STM32_Ethernet on ")); Serial.print(BOARD_NAME);
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
Serial.println(TIMEZONE_GENERIC_VERSION);
Serial.println(DS323X_GENERIC_VERSION);

#if defined(TIMEZONE_GENERIC_VERSION_MIN)
if (TIMEZONE_GENERIC_VERSION_INT < TIMEZONE_GENERIC_VERSION_MIN)
{
Serial.print("Warning. Must use this example on Version equal or later than : ");
Serial.println(TIMEZONE_GENERIC_VERSION_MIN_TARGET);
}
#endif

Wire.begin();

#if !(USE_BUILTIN_ETHERNET || USE_UIP_ETHERNET)

ET_LOGWARN3(F("Board :"), BOARD_NAME, F(", setCsPin:"), USE_THIS_SS_PIN);
Expand Down Expand Up @@ -242,7 +222,21 @@ void setup()

// you're connected now, so print out the data
Serial.print(F("You're connected to the network, IP = "));
Serial.println(Ethernet.localIP());
Serial.println(Ethernet.localIP());
}

void setup()
{
Serial.begin(115200);
while (!Serial && millis() < 5000);

Serial.print(F("\nStart RTC_STM32_Ethernet on ")); Serial.print(BOARD_NAME);
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
Serial.println(ETHERNET_WEBSERVER_STM32_VERSION);
Serial.println(TIMEZONE_GENERIC_VERSION);
Serial.println(DS323X_GENERIC_VERSION);

initEthernet();

Udp.begin(localPort);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,25 +190,8 @@ void getNTPTime(void)

//////////////////////////////////////////

void setup()
void initEthernet()
{
Serial.begin(115200);
while (!Serial);

delay(200);

Serial.print(F("\nStart TZ_NTP_Clock_STM32_Ethernet on ")); Serial.print(BOARD_NAME);
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
Serial.println(TIMEZONE_GENERIC_VERSION);

#if defined(TIMEZONE_GENERIC_VERSION_MIN)
if (TIMEZONE_GENERIC_VERSION_INT < TIMEZONE_GENERIC_VERSION_MIN)
{
Serial.print("Warning. Must use this example on Version equal or later than : ");
Serial.println(TIMEZONE_GENERIC_VERSION_MIN_TARGET);
}
#endif

#if !(USE_BUILTIN_ETHERNET || USE_UIP_ETHERNET)

ET_LOGWARN3(F("Board :"), BOARD_NAME, F(", setCsPin:"), USE_THIS_SS_PIN);
Expand All @@ -232,7 +215,7 @@ void setup()

#endif //( ( USE_ETHERNET_GENERIC || USE_ETHERNET_ENC )
#endif

// start the ethernet connection and the server:
// Use DHCP dynamic IP and random mac
uint16_t index = millis() % NUMBER_OF_MAC;
Expand All @@ -242,7 +225,20 @@ void setup()

// you're connected now, so print out the data
Serial.print(F("You're connected to the network, IP = "));
Serial.println(Ethernet.localIP());
Serial.println(Ethernet.localIP());
}

void setup()
{
Serial.begin(115200);
while (!Serial && millis() < 5000);

Serial.print(F("\nStart TZ_NTP_Clock_STM32_Ethernet on ")); Serial.print(BOARD_NAME);
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
Serial.println(ETHERNET_WEBSERVER_STM32_VERSION);
Serial.println(TIMEZONE_GENERIC_VERSION);

initEthernet();

#if !(USING_INITIALIZED_TZ)

Expand Down
4 changes: 2 additions & 2 deletions examples/Ethernet/TZ_NTP_Clock_STM32_Ethernet/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
// If USE_BUILTIN_ETHERNET == false and USE_UIP_ETHERNET == false =>
// either use W5x00 with EthernetXYZ library
// or ENC28J60 with EthernetENC library
#define USE_BUILTIN_ETHERNET true
//#define USE_BUILTIN_ETHERNET false
//#define USE_BUILTIN_ETHERNET true
#define USE_BUILTIN_ETHERNET false

//#define USE_UIP_ETHERNET true
#define USE_UIP_ETHERNET false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,25 +227,8 @@ void getNTPTime(void)

//////////////////////////////////////////

void setup()
void initEthernet()
{
Serial.begin(115200);
while (!Serial);

delay(200);

Serial.print(F("\nStart TZ_NTP_WorldClock_STM32_Ethernet on ")); Serial.print(BOARD_NAME);
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
Serial.println(TIMEZONE_GENERIC_VERSION);

#if defined(TIMEZONE_GENERIC_VERSION_MIN)
if (TIMEZONE_GENERIC_VERSION_INT < TIMEZONE_GENERIC_VERSION_MIN)
{
Serial.print("Warning. Must use this example on Version equal or later than : ");
Serial.println(TIMEZONE_GENERIC_VERSION_MIN_TARGET);
}
#endif

#if !(USE_BUILTIN_ETHERNET || USE_UIP_ETHERNET)

ET_LOGWARN3(F("Board :"), BOARD_NAME, F(", setCsPin:"), USE_THIS_SS_PIN);
Expand All @@ -269,7 +252,7 @@ void setup()

#endif //( ( USE_ETHERNET_GENERIC || USE_ETHERNET_ENC )
#endif

// start the ethernet connection and the server:
// Use DHCP dynamic IP and random mac
uint16_t index = millis() % NUMBER_OF_MAC;
Expand All @@ -279,7 +262,20 @@ void setup()

// you're connected now, so print out the data
Serial.print(F("You're connected to the network, IP = "));
Serial.println(Ethernet.localIP());
Serial.println(Ethernet.localIP());
}

void setup()
{
Serial.begin(115200);
while (!Serial && millis() < 5000);

Serial.print(F("\nStart TZ_NTP_WorldClock_STM32_Ethernet on ")); Serial.print(BOARD_NAME);
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
Serial.println(ETHERNET_WEBSERVER_STM32_VERSION);
Serial.println(TIMEZONE_GENERIC_VERSION);

initEthernet();

Udp.begin(localPort);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void getNTPTime(void)
void setup()
{
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

delay(200);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void getNTPTime(void)
void setup()
{
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

delay(200);

Expand Down
Loading

0 comments on commit 32ffecd

Please sign in to comment.