Skip to content

Commit 9945e58

Browse files
facchinmpennam
authored andcommitted
nanor4: add 3v3 regulator on/off pin
1 parent 5cfd860 commit 9945e58

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

variants/NANOR4/pins_arduino.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ static const uint8_t SS = PIN_SPI_CS;
174174

175175
#define VUSB_LDO_ENABLE 1
176176

177+
// Use this define to shutdown the 3V3 regulator
178+
// pinMode(ENABLE_3V3, OUTPUT);
179+
// digitalWrite(ENABLE_3V3, LOW);
180+
#define ENABLE_3V3 28
181+
177182
/* EEPROM DEFINES */
178183

179184
#define ARDUINO_FLASH_TYPE LP_FLASH

variants/NANOR4/variant.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ extern "C" const PinMuxCfg_t g_pin_cfg[] = {
5656
{ BSP_IO_PORT_04_PIN_00, P400 }, /* (26) QWIIK SCL */
5757
{ BSP_IO_PORT_04_PIN_01, P401 }, /* (27) QWIIK SDA */
5858

59+
{ BSP_IO_PORT_05_PIN_00, P500 }, /* (28) 3V3 enable */
5960
};
6061

6162
extern "C" {

0 commit comments

Comments
 (0)