src/APDS9930.cpp
bool APDS9930::setLightIntHighThreshold(uint16_t threshold)
{
    uint8_t val_low;
    uint8_t val_high;
    
    /* Break 16-bit threshold into 2 8-bit values */
    val_low = threshold & 0x00FF;
    val_high = (threshold & 0xFF00) >> 8;
    
    /* Write low byte */
    if( !wireWriteDataByte(APDS9930_AIHTL, val_low) ) {
        return false;
    }
    
    /* Write high byte */
    if( !wireWriteDataByte(APDS9930_AIHTH, val_high) ) {
        return false;
    }
    
    return true;
}
/**
 * @brief Sets the high threshold for ambient light interrupts
 *
 * @param[in] threshold high threshold value for interrupt to trigger
 * @return True if operation successful. False otherwise.
 */
@brief Sets the high threshold for ambient light interrupts
@param[in] threshold high threshold value for interrupt to trigger
@return True if operation successful. False otherwise.
@brief Sets the high threshold for ambient light interrupts @param [ in ] threshold high threshold value for interrupt to trigger @return True if operation successful . False otherwise .
bool APDS9930::setLightIntHighThreshold(uint16_t threshold)
{
    uint8_t val_low;
    uint8_t val_high;
    val_low = threshold & 0x00FF;
    val_high = (threshold & 0xFF00) >> 8;
    if( !wireWriteDataByte(APDS9930_AIHTL, val_low) ) {
        return false;
    }
    if( !wireWriteDataByte(APDS9930_AIHTH, val_high) ) {
        return false;
    }
    return true;
}
bool APDS9930 :: setLightIntHighThreshold ( uint16_t threshold ) { uint8_t val_low ; uint8_t val_high ; val_low = threshold & 0x00FF ; val_high = ( threshold & 0xFF00 ) >> 8 ; if ( ! wireWriteDataByte ( APDS9930_AIHTL , val_low ) ) { return false ; } if ( ! wireWriteDataByte ( APDS9930_AIHTH , val_high ) ) { return false ; } return true ; }
@brief Sets the high threshold for ambient light interrupts
 @param[in] threshold high threshold value for interrupt to trigger
 @return True if operation successful.
@brief Sets the high threshold for ambient light interrupts @param [ in ] threshold high threshold value for interrupt to trigger @return True if operation successful .
/* Break 16-bit threshold into 2 8-bit values */ /* Write low byte */ /* Write high byte */