Skip to content

Commit 82a747d

Browse files
committed
add: added ci for ESP32 target and repo cleanup
1 parent 492cc1e commit 82a747d

File tree

10 files changed

+700
-62
lines changed

10 files changed

+700
-62
lines changed

.github/workflows/compile-examples.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ jobs:
3232
- name: WiFiNINA
3333
- name: INA2xx
3434
- name: Arduino_BMI270_BMM150
35-
- name: BSEC Software Library
35+
- name: bsec2
3636
- name: Arduino_GroveI2C_Ultrasonic
3737
- name: OneWireNg
38+
- name: Arduino_APDS9999
39+
3840
3941
strategy:
4042
fail-fast: false
@@ -45,6 +47,10 @@ jobs:
4547
platforms: |
4648
- name: arduino:mbed_nano
4749
artifact-name-suffix: arduino-mbed_nano-nanorp2040connect
50+
- fqbn: arduino:esp32:nano_nora
51+
platforms: |
52+
- name: arduino:esp32
53+
artifact-name-suffix: arduino-nano-esp32
4854

4955
steps:
5056
- name: Checkout repository

.vscode/settings.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

examples/ScienceJournal/ScienceJournal.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ScienceKitCarrier science_kit;
2828
rtos::Thread thread_update_sensors;
2929
#endif
3030

31-
#ifdef ESP32
31+
#ifdef ARDUINO_NANO_ESP32
3232
TaskHandle_t update_base;
3333
TaskHandle_t update_ble;
3434
#endif
@@ -52,7 +52,7 @@ void setup(){
5252
#ifdef ARDUINO_NANO_RP2040_CONNECT
5353
name = "ScienceKit R3 - ";
5454
#endif
55-
#ifdef ESP32
55+
#ifdef ARDUINO_NANO_ESP32
5656
name = "ScienceKit - ";
5757
#endif
5858
name += address[address.length() - 5];
@@ -126,7 +126,7 @@ void setup(){
126126
#ifdef ARDUINO_NANO_RP2040_CONNECT
127127
thread_update_sensors.start(update); // this thread updates sensors
128128
#endif
129-
#ifdef ESP32
129+
#ifdef ARDUINO_NANO_ESP32
130130
xTaskCreatePinnedToCore(&freeRTOSUpdate, "update_base", 10000, NULL, 1, &update_base, 1); // starts the update sensors thread on core 1 (user)
131131
xTaskCreatePinnedToCore(&freeRTOSble, "update_ble", 10000, NULL, 1, &update_ble, 0); // starts the ble thread on core 0 (internal)
132132
#endif
@@ -140,7 +140,7 @@ void update(void){
140140
}
141141
}
142142

143-
#ifdef ESP32
143+
#ifdef ARDUINO_NANO_ESP32
144144
static void freeRTOSUpdate(void * pvParameters){
145145
update();
146146
}
@@ -157,15 +157,15 @@ void updateBle(){
157157
BLEDevice central = BLE.central();
158158
if (central) {
159159
ble_is_connected = true;
160-
#ifdef ESP32
160+
#ifdef ARDUINO_NANO_ESP32
161161
science_kit.setStatusLed(STATUS_LED_BLE);
162162
#endif
163163
lastNotify=millis();
164164
while (central.connected()) {
165165
if (millis()-lastNotify>10){
166166
updateSubscribedCharacteristics();
167167
lastNotify=millis();
168-
#ifdef ESP32
168+
#ifdef ARDUINO_NANO_ESP32
169169
delay(1);
170170
#endif
171171
}
@@ -174,7 +174,7 @@ void updateBle(){
174174
else {
175175
delay(100);
176176
ble_is_connected = false;
177-
#ifdef ESP32
177+
#ifdef ARDUINO_NANO_ESP32
178178
science_kit.setStatusLed(STATUS_LED_PAIRING);
179179
#endif
180180
}

examples/ScienceJournal/ble_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const int VERSION = 0x00000002;
5656
#ifdef ARDUINO_NANO_RP2040_CONNECT
5757
#define SCIENCE_KIT_UUID(val) ("555a0003-" val "-467a-9538-01f0652c74e8")
5858
#endif
59-
#ifdef ESP32
59+
#ifdef ARDUINO_NANO_ESP32
6060
#define SCIENCE_KIT_UUID(val) ("555a0004-" val "-467a-9538-01f0652c74e8")
6161
#endif
6262

0 commit comments

Comments
 (0)