File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 29
29
#ifndef BT_REG_ON
30
30
#define BT_REG_ON PJ_12
31
31
#endif
32
+ #elif defined(ARDUINO_NICLA_VISION)
33
+ #ifndef BT_REG_ON
34
+ #define BT_REG_ON PF_14
35
+ #endif
32
36
#endif
33
37
34
38
BLELocalDevice::BLELocalDevice ()
@@ -61,7 +65,7 @@ int BLELocalDevice::begin()
61
65
delay (100 );
62
66
digitalWrite (NINA_RESETN, HIGH);
63
67
delay (750 );
64
- #elif defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7)
68
+ #elif defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
65
69
// BT_REG_ON -> HIGH
66
70
pinMode (BT_REG_ON, OUTPUT);
67
71
digitalWrite (BT_REG_ON, HIGH);
@@ -134,8 +138,7 @@ void BLELocalDevice::end()
134
138
#elif defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_NANO_RP2040_CONNECT)
135
139
// disable the NINA
136
140
digitalWrite (NINA_RESETN, LOW);
137
- #elif defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7)
138
- // BT_REG_ON -> LOW
141
+ #elif defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
139
142
digitalWrite (BT_REG_ON, LOW);
140
143
#endif
141
144
}
Original file line number Diff line number Diff line change 27
27
// SerialHCI is already defined in the variant
28
28
#elif defined(ARDUINO_PORTENTA_H7_M4)
29
29
// SerialHCI is already defined in the variant
30
- #elif defined(ARDUINO_PORTENTA_H7_M7)
30
+ #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
31
31
#define SerialHCI Serial2
32
32
#else
33
33
#error "Unsupported board selected!"
You can’t perform that action at this time.
0 commit comments