File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
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,9 @@ 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);
87-   delay (100 );
88-   digitalWrite (NINA_RESETN, HIGH);
89-   digitalWrite (NINA_RESETN, LOW);
90-   digitalWrite (NINA_RESETN, HIGH);
85+   Serial5.begin (921600 );
86+   CEspChipManager::getInstance ().initialize ();
9187  auto  _start = millis ();
9288  while  (millis () - _start < 500 ) {
9389    if  (Serial5.available ()) {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments