Skip to content

Commit 671c1b3

Browse files
committed
change reconfigure pin for nicla vision
1 parent 1b4ad0f commit 671c1b3

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

examples/NetworkConfiguratorDemo/NetworkConfiguratorDemo.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* - Arduino MKR WiFi 1010: short the pin 7 to GND until the led turns off
2222
* - Arduino GIGA R1 WiFi: short the pin 7 to GND until the led turns off
2323
* - Arduino Nano RP2040 Connect: short the pin 2 to 3.3V until the led turns off
24+
* - Nicla Vision: short the pin PA_13 to GND until the led turns off
2425
* - Portenta H7: short the pin 0 to GND until the led turns off
2526
* - Portenta C33: short the pin 0 to GND until the led turns off
2627
* - Portenta Machine Control: the reset is not available

src/ANetworkConfigurator_Config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797

9898
#if defined(ARDUINO_NICLA_VISION)
9999
#define NETWORK_CONFIGURATOR_COMPATIBLE 1
100-
#define PIN_RECONFIGURE 2
100+
#define PIN_RECONFIGURE PA_13
101101
#define LED_RECONFIGURE LED_BUILTIN
102102
#define BOARD_HAS_RGB
103103
#define GREEN_LED LEDG

src/Arduino_NetworkConfigurator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::update() {
111111
* - Arduino MKR WiFi 1010: short the pin 7 to GND until the led turns off
112112
* - Arduino GIGA R1 WiFi: short the pin 7 to GND until the led turns off
113113
* - Arduino Nano RP2040 Connect: short the pin 2 to 3.3V until the led turns off
114+
* - Nicla Vision: short the pin PA_13 to GND until the led turns off
114115
* - Portenta H7: short the pin 0 to GND until the led turns off
115116
* - Portenta C33: short the pin 0 to GND until the led turns off
116117
* - Portenta Machine Control: the reset is not available

src/Arduino_NetworkConfigurator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ enum class NetworkConfiguratorStates { ZERO_TOUCH_CONFIG,
5858
* - Arduino MKR WiFi 1010: short the pin 7 to GND until the led turns off
5959
* - Arduino GIGA R1 WiFi: short the pin 7 to GND until the led turns off
6060
* - Arduino Nano RP2040 Connect: short the pin 2 to 3.3V until the led turns off
61+
* - Nicla Vision: short the pin PA_13 to GND until the led turns off
6162
* - Portenta H7: short the pin 0 to GND until the led turns off
6263
* - Portenta C33: short the pin 0 to GND until the led turns off
6364
* - Portenta Machine Control: the reset is not available

src/utility/ResetInput.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
#include "ResetInput.h"
1212
#include "utility/LEDFeedback.h"
1313

14+
#if defined(ARDUINO_NICLA_VISION)
15+
#include <pinDefinitions.h>
16+
#endif
17+
1418
#if defined(ARDUINO_PORTENTA_H7_M7)
1519
#include <Wire.h>
1620

@@ -39,7 +43,12 @@ ResetInput &ResetInput::getInstance() {
3943
}
4044

4145
ResetInput::ResetInput() {
46+
#if defined(ARDUINO_NICLA_VISION)
47+
_pin = PinNameToIndex(PIN_RECONFIGURE);
48+
#else
4249
_pin = PIN_RECONFIGURE;
50+
#endif
51+
4352
_expired = false;
4453
_startPressed = 0;
4554
_fireEvent = false;

0 commit comments

Comments
 (0)