esp8266_LED_RGBLED.cpp
void _RGBToggle (RGBLED* led) {
   os_intr_lock();                           // disable interrupts
   led->_toggleState();
   os_intr_unlock();                         // enable interrupts
}
/*
This callback funciton is called by the ESP OS timer interrupt to toggle the LED's state for blinking
Note that as you cannot get the address of a class member function, this has to exist outside the class
and we use a pointer to the object to allow this function to access the LED object
*/
This callback funciton is called by the ESP OS timer interrupt to toggle the LED's state for blinking
Note that as you cannot get the address of a class member function, this has to exist outside the class
and we use a pointer to the object to allow this function to access the LED object
This callback funciton is called by the ESP OS timer interrupt to toggle the LED ' s state for blinking Note that as you cannot get the address of a class member function this has to exist outside the class and we use a pointer to the object to allow this function to access the LED object
void _RGBToggle (RGBLED* led) {
   os_intr_lock();                           
   led->_toggleState();
   os_intr_unlock();                         
}
void _RGBToggle ( RGBLED * led ) { os_intr_lock ( ) ; led -> _toggleState ( ) ; os_intr_unlock ( ) ; }
This callback funciton is called by the ESP OS timer interrupt to toggle the LED's state for blinking
Note that as you cannot get the address of a class member function, this has to exist outside the class
and we use a pointer to the object to allow this function to access the LED object
This callback funciton is called by the ESP OS timer interrupt to toggle the LED ' s state for blinking Note that as you cannot get the address of a class member function this has to exist outside the class and we use a pointer to the object to allow this function to access the LED object
// disable interrupts // enable interrupts