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

Commit a0b247e

Browse files
authored
v1.2.0 to add support to Arduino-mbed RP2040 core
### Releases v1.2.0 1. Add support to RP2040-based boards, such as **RASPBERRY_PI_PICO boards** using [**Arduino-mbed RP2040** core](https://github.com/arduino/ArduinoCore-mbed). 2. Fix compiler warnings
1 parent 5bf4241 commit a0b247e

File tree

8 files changed

+207
-8
lines changed

8 files changed

+207
-8
lines changed

README.md

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
* [Example TCPServer](#example-tcpserver)
5959
* [Debug Terminal Output Samples](#debug-terminal-output-samples)
6060
* [1. HTTPGET on RASPBERRY_PI_PICO with ESP8266-AT shield](#1-httpget-on-raspberry_pi_pico-with-esp8266-at-shield)
61+
* [2. HTTPGET on MBED RASPBERRY_PI_PICO with ESP8266-AT shield](#1-httpget-on-mbed-raspberry_pi_pico-with-esp8266-at-shield)
6162
* [Debug](#debug)
6263
* [Troubleshooting](#troubleshooting)
6364
* [Releases](#releases)
@@ -979,7 +980,7 @@ void loop(void)
979980
980981
#### 1. HTTPGET on RASPBERRY_PI_PICO with ESP8266-AT shield
981982
982-
This is the terminal output when running [HTTPGET](examples/HTTPGET) example on **RASPBERRY_PI_PICO with ESP8266-AT shield**:
983+
This is the terminal output when running [HTTPGET](examples/HTTPGET) example on **RASPBERRY_PI_PICO with ESP8266-AT shield**, using [Earle Philhower's arduino-pico core](https://github.com/earlephilhower/arduino-pico)
983984
984985
985986
```
@@ -1038,6 +1039,78 @@ Accept-Ranges: bytes
10381039
============================================================
10391040
```
10401041
1042+
---
1043+
1044+
#### 2. HTTPGET on MBED RASPBERRY_PI_PICO with ESP8266-AT shield
1045+
1046+
This is the terminal output when running [HTTPGET](examples/HTTPGET) example on **RASPBERRY_PI_PICO with ESP8266-AT shield**, using [**Arduino-mbed RP2040** core](https://github.com/arduino/ArduinoCore-mbed).
1047+
1048+
1049+
```
1050+
Start HTTPGET on MBED RASPBERRY_PI_PICO
1051+
ESP_AT_Lib v1.2.0
1052+
FW Version:AT version:1.7.4.0(May 11 2020 19:13:04)
1053+
SDK version:3.0.4(9532ceb)
1054+
compile time:May 27 2020 10:12:17
1055+
Bin version(Wroom 02):1.7.4
1056+
OK
1057+
Set AP/STA Mode OK
1058+
Connect to WiFi OK
1059+
IP: +CIFSR:APIP,"192.168.4.1"
1060+
+CIFSR:APMAC,"6a:c6:3a:a6:f0:f1"
1061+
+CIFSR:STAIP,"192.168.2.76"
1062+
+CIFSR:STAMAC,"68:c6:3a:a6:f0:f1"
1063+
disableMUX OK
1064+
Done
1065+
Create TCP OK
1066+
=========================Received============================
1067+
HTTP/1.1 200 OK
1068+
Server: nginx/1.4.2
1069+
Date: Tue, 18 May 2021 00:00:44 GMT
1070+
Content-Type: text/plain
1071+
Content-Length: 2263
1072+
Last-Modified: Wed, 02 Oct 2013 13:46:47 GMT
1073+
Connection: close
1074+
Vary: Accept-Encoding
1075+
ETag: "524c23c7-8d7"
1076+
Accept-Ranges: bytes
1077+
1078+
1079+
`:;;;,` .:;;:.
1080+
.;;;;;;;;;;;` :;;;;;;;;;;: TM
1081+
`;;;;;;;;;;;;;;;` :;;;;;;;;;;;;;;;
1082+
:;;;;;;;;;;;;;;;;;; `;;;;;;;;;;;;;;;;;;
1083+
;;;;;;;;;;;;;;;;;;;;; .;;;;;;;;;;;;;;;;;;;;
1084+
;;;;;;;;:` `;;;;;;;;; ,;;;;;;;;.` .;;;;;;;;
1085+
.;;;;;;, :;;;;;;; .;;;;;;; ;;;;;;;
1086+
;;;;;; ;;;;;;; ;;;;;;, ;;;;;;.
1087+
,;;;;; ;;;;;;.;;;;;;` ;;;;;;
1088+
;;;;;. ;;;;;;;;;;;` ``` ;;;;;`
1089+
;;;;; ;;;;;;;;;, ;;; .;;;;;
1090+
`;;;;: `;;;;;;;; ;;; ;;;;;
1091+
,;;;;` `,,,,,,,, ;;;;;;; .,,;;;,,, ;;;;;
1092+
:;;;;` .;;;;;;;; ;;;;;, :;;;;;;;; ;;;;;
1093+
:;;;;` .;;;;;;;; `;;;;;; :;;;;;;;; ;;;;;
1094+
.;;;;. ;;;;;;;. ;;; ;;;;;
1095+
;;;;; ;;;;;;;;; ;;; ;;;;;
1096+
;;;;; .;;;;;;;;;; ;;; ;;;;;,
1097+
;;;;;; `;;;;;;;;;;;; ;;;;;
1098+
`;;;;;, .;;;;;; ;;;;;;; ;;;;;;
1099+
;;;;;;: :;;;;;;. ;;;;;;; ;;;;;;
1100+
;;;;;;;` .;;;;;;;, ;;;;;;;; ;;;;;;;:
1101+
;;;;;;;;;:,:;;;;;;;;;: ;;;;;;;;;;:,;;;;;;;;;;
1102+
`;;;;;;;;;;;;;;;;;;;. ;;;;;;;;;;;;;;;;;;;;
1103+
;;;;;;;;;;;;;;;;; :;;;;;;;;;;;;;;;;:
1104+
,;;;;;;;;;;;;;, ;;;;;;;;;;;;;;
1105+
.;;;;;;;;;` ,;;;;;;;;:
1106+
1107+
1108+
1109+
1110+
============================================================
1111+
1112+
```
1113+
10411114
---
10421115
---
10431116

examples/ConnectWiFi/ConnectWiFi.ino

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,25 @@
234234
#elif ( defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )
235235

236236
#warning RASPBERRY_PI_PICO board selected
237-
#define BOARD_TYPE "RASPBERRY_PI_PICO"
237+
238+
#if defined(ARDUINO_ARCH_MBED)
239+
240+
#if defined(BOARD_NAME)
241+
#undef BOARD_NAME
242+
#endif
243+
244+
#if defined(ARDUINO_RASPBERRY_PI_PICO)
245+
#define BOARD_TYPE "MBED RASPBERRY_PI_PICO"
246+
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
247+
#define BOARD_TYPE "MBED DAFRUIT_FEATHER_RP2040"
248+
#elif defined(ARDUINO_GENERIC_RP2040)
249+
#define BOARD_TYPE "MBED GENERIC_RP2040"
250+
#else
251+
#define BOARD_TYPE "MBED Unknown RP2040"
252+
#endif
253+
#else
254+
#define BOARD_TYPE "RASPBERRY_PI_PICO"
255+
#endif
238256

239257
#define EspSerial Serial1
240258

examples/HTTPGET/HTTPGET.ino

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,25 @@
234234
#elif ( defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )
235235

236236
#warning RASPBERRY_PI_PICO board selected
237-
#define BOARD_TYPE "RASPBERRY_PI_PICO"
237+
238+
#if defined(ARDUINO_ARCH_MBED)
239+
240+
#if defined(BOARD_NAME)
241+
#undef BOARD_NAME
242+
#endif
243+
244+
#if defined(ARDUINO_RASPBERRY_PI_PICO)
245+
#define BOARD_TYPE "MBED RASPBERRY_PI_PICO"
246+
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
247+
#define BOARD_TYPE "MBED DAFRUIT_FEATHER_RP2040"
248+
#elif defined(ARDUINO_GENERIC_RP2040)
249+
#define BOARD_TYPE "MBED GENERIC_RP2040"
250+
#else
251+
#define BOARD_TYPE "MBED Unknown RP2040"
252+
#endif
253+
#else
254+
#define BOARD_TYPE "RASPBERRY_PI_PICO"
255+
#endif
238256

239257
#define EspSerial Serial1
240258

examples/TCPClientMultiple/TCPClientMultiple.ino

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,25 @@
234234
#elif ( defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )
235235

236236
#warning RASPBERRY_PI_PICO board selected
237-
#define BOARD_TYPE "RASPBERRY_PI_PICO"
237+
238+
#if defined(ARDUINO_ARCH_MBED)
239+
240+
#if defined(BOARD_NAME)
241+
#undef BOARD_NAME
242+
#endif
243+
244+
#if defined(ARDUINO_RASPBERRY_PI_PICO)
245+
#define BOARD_TYPE "MBED RASPBERRY_PI_PICO"
246+
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
247+
#define BOARD_TYPE "MBED DAFRUIT_FEATHER_RP2040"
248+
#elif defined(ARDUINO_GENERIC_RP2040)
249+
#define BOARD_TYPE "MBED GENERIC_RP2040"
250+
#else
251+
#define BOARD_TYPE "MBED Unknown RP2040"
252+
#endif
253+
#else
254+
#define BOARD_TYPE "RASPBERRY_PI_PICO"
255+
#endif
238256

239257
#define EspSerial Serial1
240258

examples/TCPClientSingle/TCPClientSingle.ino

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,25 @@
234234
#elif ( defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )
235235

236236
#warning RASPBERRY_PI_PICO board selected
237-
#define BOARD_TYPE "RASPBERRY_PI_PICO"
237+
238+
#if defined(ARDUINO_ARCH_MBED)
239+
240+
#if defined(BOARD_NAME)
241+
#undef BOARD_NAME
242+
#endif
243+
244+
#if defined(ARDUINO_RASPBERRY_PI_PICO)
245+
#define BOARD_TYPE "MBED RASPBERRY_PI_PICO"
246+
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
247+
#define BOARD_TYPE "MBED DAFRUIT_FEATHER_RP2040"
248+
#elif defined(ARDUINO_GENERIC_RP2040)
249+
#define BOARD_TYPE "MBED GENERIC_RP2040"
250+
#else
251+
#define BOARD_TYPE "MBED Unknown RP2040"
252+
#endif
253+
#else
254+
#define BOARD_TYPE "RASPBERRY_PI_PICO"
255+
#endif
238256

239257
#define EspSerial Serial1
240258

examples/TCPServer/TCPServer.ino

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,25 @@
234234
#elif ( defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )
235235

236236
#warning RASPBERRY_PI_PICO board selected
237-
#define BOARD_TYPE "RASPBERRY_PI_PICO"
237+
238+
#if defined(ARDUINO_ARCH_MBED)
239+
240+
#if defined(BOARD_NAME)
241+
#undef BOARD_NAME
242+
#endif
243+
244+
#if defined(ARDUINO_RASPBERRY_PI_PICO)
245+
#define BOARD_TYPE "MBED RASPBERRY_PI_PICO"
246+
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
247+
#define BOARD_TYPE "MBED DAFRUIT_FEATHER_RP2040"
248+
#elif defined(ARDUINO_GENERIC_RP2040)
249+
#define BOARD_TYPE "MBED GENERIC_RP2040"
250+
#else
251+
#define BOARD_TYPE "MBED Unknown RP2040"
252+
#endif
253+
#else
254+
#define BOARD_TYPE "RASPBERRY_PI_PICO"
255+
#endif
238256

239257
#define EspSerial Serial1
240258

examples/UDPClientMultiple/UDPClientMultiple.ino

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,25 @@
234234
#elif ( defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )
235235

236236
#warning RASPBERRY_PI_PICO board selected
237-
#define BOARD_TYPE "RASPBERRY_PI_PICO"
237+
238+
#if defined(ARDUINO_ARCH_MBED)
239+
240+
#if defined(BOARD_NAME)
241+
#undef BOARD_NAME
242+
#endif
243+
244+
#if defined(ARDUINO_RASPBERRY_PI_PICO)
245+
#define BOARD_TYPE "MBED RASPBERRY_PI_PICO"
246+
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
247+
#define BOARD_TYPE "MBED DAFRUIT_FEATHER_RP2040"
248+
#elif defined(ARDUINO_GENERIC_RP2040)
249+
#define BOARD_TYPE "MBED GENERIC_RP2040"
250+
#else
251+
#define BOARD_TYPE "MBED Unknown RP2040"
252+
#endif
253+
#else
254+
#define BOARD_TYPE "RASPBERRY_PI_PICO"
255+
#endif
238256

239257
#define EspSerial Serial1
240258

examples/UDPClientSingle/UDPClientSingle.ino

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,25 @@
234234
#elif ( defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) || defined(ARDUINO_GENERIC_RP2040) )
235235

236236
#warning RASPBERRY_PI_PICO board selected
237-
#define BOARD_TYPE "RASPBERRY_PI_PICO"
237+
238+
#if defined(ARDUINO_ARCH_MBED)
239+
240+
#if defined(BOARD_NAME)
241+
#undef BOARD_NAME
242+
#endif
243+
244+
#if defined(ARDUINO_RASPBERRY_PI_PICO)
245+
#define BOARD_TYPE "MBED RASPBERRY_PI_PICO"
246+
#elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
247+
#define BOARD_TYPE "MBED DAFRUIT_FEATHER_RP2040"
248+
#elif defined(ARDUINO_GENERIC_RP2040)
249+
#define BOARD_TYPE "MBED GENERIC_RP2040"
250+
#else
251+
#define BOARD_TYPE "MBED Unknown RP2040"
252+
#endif
253+
#else
254+
#define BOARD_TYPE "RASPBERRY_PI_PICO"
255+
#endif
238256

239257
#define EspSerial Serial1
240258

0 commit comments

Comments
 (0)