lib/RadioHead/MGOSCompat/MGOS.cpp
/**
 * @brief Set the state of a GPIO pin.
 * @param pin the Pin whose state is to be set.
 * @param value The state of the pin.
 */
@brief Set the state of a GPIO pin.
@param pin the Pin whose state is to be set.
@param value The state of the pin.
@brief Set the state of a GPIO pin . @param pin the Pin whose state is to be set . @param value The state of the pin .
void digitalWrite(unsigned char pin, unsigned char value)
{
    if( SPI.getCSGpio() != pin ) {
        mgos_gpio_write(pin,value);
    }
}
void digitalWrite ( unsigned char pin , unsigned char value ) { if ( SPI . getCSGpio ( ) != pin ) { mgos_gpio_write ( pin , value ) ; } }
@brief Set the state of a GPIO pin.
@brief Set the state of a GPIO pin .
//SPI CS GPIO controlled by MGOS lib call so don't allow it to be set here