File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 99
1010class  TimerTask ;
1111
12- #if  defined(__MBED__) || defined(ARDUINO_ARDUINO_NANO33BLE)
12+ //  when not on mbed, we need to load Arduino.h to get the right defines for some boards.
13+ #ifndef  __MBED__
14+ #include  < Arduino.h> 
15+ #endif 
16+ 
17+ #if  defined(__MBED__) && !defined(ARDUINO_PICO_REVISION)
1318
1419#if  defined(TM_ENABLE_CAPTURED_LAMBDAS)
1520#define  TM_ALLOW_CAPTURED_LAMBDA 
@@ -95,15 +100,15 @@ namespace tm_internal {
95100        *pPtr = newValue;
96101    }
97102}
98- #elif  defined(ESP8266) || defined(ESP32)
103+ #elif  defined(ESP8266) || defined(ESP32) || defined(ARDUINO_PICO_REVISION) 
99104#include  " Arduino.h" 
100105typedef  uint8_t  pintype_t ;
101106# define  IOA_USE_ARDUINO 
102107#if  defined(TM_ENABLE_CAPTURED_LAMBDAS)
103108# define  TM_ALLOW_CAPTURED_LAMBDA 
104109#endif 
105110
106- #if  defined(ESP8266)
111+ #if  defined(ESP8266) || defined(ARDUINO_PICO_REVISION) 
107112#include  < atomic> 
108113namespace  tm_internal  {
109114
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments