File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 2525
2626#include " BLELocalDevice.h"
2727
28+ #if defined(ARDUINO_PORTENTA_C33)
29+ #include < EspChipManager.h>
30+ #endif
31+
2832#if defined(PORTENTA_H7_PINS) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
2933#ifndef BT_REG_ON
3034#define BT_REG_ON PJ_12
@@ -77,17 +81,11 @@ int BLELocalDevice::begin()
7781 digitalWrite (BT_REG_ON, HIGH);
7882 delay (500 );
7983#elif defined(ARDUINO_PORTENTA_C33)
80- #define NINA_GPIO0 (100 )
81- #define NINA_RESETN (101 )
82- pinMode (NINA_GPIO0, OUTPUT);
83- pinMode (NINA_RESETN, OUTPUT);
84- Serial5.begin (921600 );
8584
86- digitalWrite (NINA_GPIO0, HIGH);
85+ Serial5.begin (921600 );
86+ CEspChipManager::getInstance ().initializeBLE ();
8787 delay (100 );
88- digitalWrite (NINA_RESETN, HIGH);
89- digitalWrite (NINA_RESETN, LOW);
90- digitalWrite (NINA_RESETN, HIGH);
88+ CEspChipManager::getInstance ().initialize ();
9189 auto _start = millis ();
9290 while (millis () - _start < 500 ) {
9391 if (Serial5.available ()) {
You can’t perform that action at this time.
0 commit comments