Skip to content

Change reconfigure pin for nicla vision #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* - Arduino MKR WiFi 1010: short the pin 7 to GND until the led turns off
* - Arduino GIGA R1 WiFi: short the pin 7 to GND until the led turns off
* - Arduino Nano RP2040 Connect: short the pin 2 to 3.3V until the led turns off
* - Nicla Vision: short the pin PA_13 to GND until the led turns off
* - Portenta H7: short the pin 0 to GND until the led turns off
* - Portenta C33: short the pin 0 to GND until the led turns off
* - Portenta Machine Control: the reset is not available
Expand Down
2 changes: 1 addition & 1 deletion src/ANetworkConfigurator_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

#if defined(ARDUINO_NICLA_VISION)
#define NETWORK_CONFIGURATOR_COMPATIBLE 1
#define PIN_RECONFIGURE 2
#define PIN_RECONFIGURE PA_13
#define LED_RECONFIGURE LED_BUILTIN
#define BOARD_HAS_RGB
#define GREEN_LED LEDG
Expand Down
1 change: 1 addition & 0 deletions src/Arduino_NetworkConfigurator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::update() {
* - Arduino MKR WiFi 1010: short the pin 7 to GND until the led turns off
* - Arduino GIGA R1 WiFi: short the pin 7 to GND until the led turns off
* - Arduino Nano RP2040 Connect: short the pin 2 to 3.3V until the led turns off
* - Nicla Vision: short the pin PA_13 to GND until the led turns off
* - Portenta H7: short the pin 0 to GND until the led turns off
* - Portenta C33: short the pin 0 to GND until the led turns off
* - Portenta Machine Control: the reset is not available
Expand Down
1 change: 1 addition & 0 deletions src/Arduino_NetworkConfigurator.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ enum class NetworkConfiguratorStates { ZERO_TOUCH_CONFIG,
* - Arduino MKR WiFi 1010: short the pin 7 to GND until the led turns off
* - Arduino GIGA R1 WiFi: short the pin 7 to GND until the led turns off
* - Arduino Nano RP2040 Connect: short the pin 2 to 3.3V until the led turns off
* - Nicla Vision: short the pin PA_13 to GND until the led turns off
* - Portenta H7: short the pin 0 to GND until the led turns off
* - Portenta C33: short the pin 0 to GND until the led turns off
* - Portenta Machine Control: the reset is not available
Expand Down
9 changes: 9 additions & 0 deletions src/utility/ResetInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include "ResetInput.h"
#include "utility/LEDFeedback.h"

#if defined(ARDUINO_NICLA_VISION)
#include <pinDefinitions.h>
#endif

#if defined(ARDUINO_PORTENTA_H7_M7)
#include <Wire.h>

Expand Down Expand Up @@ -39,7 +43,12 @@ ResetInput &ResetInput::getInstance() {
}

ResetInput::ResetInput() {
#if defined(ARDUINO_NICLA_VISION)
_pin = PinNameToIndex(PIN_RECONFIGURE);
#else
_pin = PIN_RECONFIGURE;
#endif

_expired = false;
_startPressed = 0;
_fireEvent = false;
Expand Down
Loading