File tree 3 files changed +20
-1
lines changed
examples/ArduinoIoTCloud-Basic
src/cbor/lib/tinycbor/src
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 46
46
{"fqbn": "arduino:samd:mkrnb1500", "type": "nb"},
47
47
{"fqbn": "arduino:mbed:envie_m4", "type": "mbed"},
48
48
{"fqbn": "arduino:mbed:envie_m7", "type": "mbed"},
49
- {"fqbn": "esp8266:esp8266:huzzah", "type": "esp8266"}
49
+ {"fqbn": "esp8266:esp8266:huzzah", "type": "esp8266"},
50
+ {"fqbn": "esp32:esp32:esp32", "type": "esp32"}
50
51
]
51
52
52
53
# make board type-specific customizations to the matrix jobs
@@ -132,6 +133,15 @@ jobs:
132
133
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
133
134
libraries :
134
135
sketch-paths :
136
+ # ESP32 boards
137
+ - board :
138
+ type : " esp32"
139
+ platforms : |
140
+ # Install ESP32 platform via Boards Manager
141
+ - name: esp32:esp32
142
+ source-url: https://github.com/raw/espressif/arduino-esp32/gh-pages/package_esp32_index.json
143
+ libraries :
144
+ sketch-paths :
135
145
136
146
steps :
137
147
- name : Checkout
@@ -162,6 +172,10 @@ jobs:
162
172
run : |
163
173
mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino"
164
174
175
+ - name : Install ESP32 platform dependencies
176
+ if : matrix.board.type == 'esp32'
177
+ run : pip3 install pyserial
178
+
165
179
- name : Compile examples
166
180
uses : arduino/compile-sketches@main
167
181
with :
Original file line number Diff line number Diff line change 22
22
#include " arduino_secrets.h"
23
23
#include " thingProperties.h"
24
24
25
+ #if defined(ESP32)
26
+ static int const LED_BUILTIN = 2 ;
27
+ #endif
28
+
25
29
void setup () {
26
30
/* Initialize serial and wait up to 5 seconds for port to open */
27
31
Serial.begin (9600 );
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ typedef size_t LenType;
41
41
42
42
#pragma GCC diagnostic push
43
43
#pragma GCC diagnostic ignored "-Wpedantic"
44
+ #pragma GCC diagnostic ignored "-Wreturn-type"
44
45
45
46
struct Buffer
46
47
{
You can’t perform that action at this time.
0 commit comments