Skip to content

Commit c1933bf

Browse files
authored
Merge pull request #18 from 107-systems/add-missing-archs
Add support for esp32/mbed_portenta/mbed_nano/mbed_edge boards
2 parents 5dd1230 + 5d5dd3c commit c1933bf

File tree

5 files changed

+52
-24
lines changed

5 files changed

+52
-24
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[codespell]
22
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
3-
ignore-words-list = ,
3+
ignore-words-list = wan,
44
check-filenames =
55
check-hidden =
66
skip = ./.git

.github/workflows/compile-examples.yml

Lines changed: 43 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ on:
1111
- ".github/workflows/compile-examples.yml"
1212
- "examples/**"
1313
- "src/**"
14-
# Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms)
15-
schedule:
16-
# run every Saturday at 3 AM UTC
17-
- cron: "0 3 * * 6"
18-
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch
19-
workflow_dispatch:
20-
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#repository_dispatch
21-
repository_dispatch:
2214

2315
jobs:
2416
build:
@@ -32,40 +24,71 @@ jobs:
3224

3325
matrix:
3426
board:
35-
- fqbn: arduino:samd:arduino_zero_edbg
3627
- fqbn: arduino:samd:mkr1000
28+
platforms: |
29+
- name: arduino:samd
3730
- fqbn: arduino:samd:mkrzero
31+
platforms: |
32+
- name: arduino:samd
3833
- fqbn: arduino:samd:mkrwifi1010
39-
- fqbn: arduino:samd:nano_33_iot
34+
platforms: |
35+
- name: arduino:samd
4036
- fqbn: arduino:samd:mkrfox1200
37+
platforms: |
38+
- name: arduino:samd
4139
- fqbn: arduino:samd:mkrwan1300
40+
platforms: |
41+
- name: arduino:samd
4242
- fqbn: arduino:samd:mkrwan1310
43+
platforms: |
44+
- name: arduino:samd
4345
- fqbn: arduino:samd:mkrgsm1400
46+
platforms: |
47+
- name: arduino:samd
4448
- fqbn: arduino:samd:mkrnb1500
49+
platforms: |
50+
- name: arduino:samd
4551
- fqbn: arduino:samd:mkrvidor4000
46-
- fqbn: arduino:mbed:envie_m7
47-
- fqbn: arduino:mbed:envie_m4
48-
- fqbn: arduino:mbed:nano33ble
52+
platforms: |
53+
- name: arduino:samd
54+
- fqbn: arduino:mbed_portenta:envie_m7
55+
platforms: |
56+
- name: arduino:mbed_portenta
57+
- fqbn: arduino:mbed_portenta:envie_m4
58+
platforms: |
59+
- name: arduino:mbed_portenta
60+
- fqbn: arduino:mbed_nano:nano33ble
61+
platforms: |
62+
- name: arduino:mbed_nano
63+
- fqbn: arduino:mbed_nano:nanorp2040connect
64+
platforms: |
65+
- name: arduino:mbed_nano
66+
- fqbn: arduino:mbed_edge:edge_control
67+
platforms: |
68+
- name: arduino:mbed_edge
69+
- fqbn: esp32:esp32:esp32
70+
platforms: |
71+
- name: esp32:esp32
72+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
4973
5074
steps:
5175
- name: Checkout
5276
uses: actions/checkout@v2
5377

78+
- name: Install ESP32 platform dependencies
79+
if: startsWith(matrix.board.fqbn, 'esp32:esp32')
80+
run: pip3 install pyserial
81+
5482
- name: Compile examples
5583
uses: arduino/compile-sketches@main
5684
with:
5785
fqbn: ${{ matrix.board.fqbn }}
58-
libraries: |
59-
# Install the library from the local path.
60-
- source-path: ./
61-
# Additional library dependencies can be listed here.
62-
# See: https://github.com/arduino/compile-sketches#libraries
63-
sketch-paths: |
64-
- ./examples/
86+
platforms: ${{ matrix.board.platforms }}
6587
enable-deltas-report: true
6688
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
6789

6890
- name: Save memory usage change report as artifact
91+
if: github.event_name == 'pull_request'
6992
uses: actions/upload-artifact@v2
7093
with:
7194
name: ${{ env.SKETCHES_REPORTS_PATH }}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
Arduino library for providing convenient macros for printf-style debugging.
1616

17+
This library works for
18+
* [ArduinoCore-samd](https://github.com/arduino/ArduinoCore-samd): [`Arduino Zero`](https://store.arduino.cc/arduino-zero), [`MKR 1000`](https://store.arduino.cc/arduino-mkr1000-wifi), [`MKR WiFi 1010`](https://store.arduino.cc/arduino-mkr-wifi-1010), [`Nano 33 IoT`](https://store.arduino.cc/arduino-nano-33-iot), [`MKR GSM 1400`](https://store.arduino.cc/arduino-mkr-gsm-1400-1415), [`MKR NB 1500`](https://store.arduino.cc/arduino-mkr-nb-1500-1413), [`MKR WAN 1300/1310`](https://store.arduino.cc/mkr-wan-1310) :heavy_check_mark:
19+
* [ArduinoCore-mbed](https://github.com/arduino/ArduinoCore-mbed): [`Portenta H7`](https://store.arduino.cc/portenta-h7), [`Nano 33 BLE`](https://store.arduino.cc/arduino-nano-33-ble), [`Nano RP2040 Connect`](https://store.arduino.cc/nano-rp2040-connect), [`Edge Control`](https://store.arduino.cc/edge-control) :heavy_check_mark:
20+
* [arduino-esp32](https://github.com/espressif/arduino-esp32): `ESP32 Dev Module`, `ESP32 Wrover Module`, ... :heavy_check_mark:
21+
1722
## Example
1823
```C++
1924
#define DBG_ENABLE_ERROR

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ sentence=Arduino library for providing convenient macros for printf-style debugg
66
paragraph=
77
category=Other
88
url=https://github.com/107-systems/107-Arduino-Debug
9-
architectures=samd,mbed,mbed_nano,mbed_portenta
9+
architectures=samd,esp32,mbed,mbed_nano,mbed_portenta,mbed_edge
1010
includes=ArduinoDebug.hpp

src/dtostrf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1818
*/
1919

20-
#if !defined(ARDUINO_ARCH_MBED)
20+
#if defined(ARDUINO_ARCH_SAMD)
2121

2222
#include <stdio.h>
2323

@@ -31,4 +31,4 @@ char *dtostrf (double val, signed char width, unsigned char prec, char *sout)
3131
return sout;
3232
}
3333

34-
#endif /* !defined(ARDUINO_ARCH_MBED) */
34+
#endif /* defined(ARDUINO_ARCH_SAMD) */

0 commit comments

Comments
 (0)