Skip to content

Commit e065d7b

Browse files
authored
Merge pull request #37 from pennam/niclav
Add Nicla Vison and Opta binary download url
2 parents feb4e28 + 34a7644 commit e065d7b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/compile-examples.yml

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- name: Arduino_DebugUtils
4040
sketch-paths: |
4141
- examples/OTA_Qspi_Flash
42+
- examples/OTA_Qspi_Flash_Ethernet
4243
- examples/OTA_SD_Portenta
4344
- examples/OTA_Usage_Portenta
4445
- fqbn: arduino:mbed_nicla:nicla_vision

examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino

+8
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@
3333
static char const SSID[] = SECRET_SSID; /* your network SSID (name) */
3434
static char const PASS[] = SECRET_PASS; /* your network password (use for WPA, or use as key for WEP) */
3535

36+
#if defined(ARDUINO_NICLA_VISION)
37+
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.NICLA_VISION.ota";
38+
#elif defined(ARDUINO_PORTENTA_H7_M7)
3639
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota";
40+
#elif defined(ARDUINO_OPTA)
41+
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota";
42+
#else
43+
#error "Board not supported"
44+
#endif
3745

3846
/******************************************************************************
3947
* SETUP/LOOP

0 commit comments

Comments
 (0)