src/HapTouch.cpp
// getResponseCode()
// Used by the other command methods to retrieve the HapTouch controller
// response code after sending a command.
// This method would generally not be used in most sketches
getResponseCode()
Used by the other command methods to retrieve the HapTouch controller
response code after sending a command.
This method would generally not be used in most sketches
getResponseCode () Used by the other command methods to retrieve the HapTouch controller response code after sending a command . This method would generally not be used in most sketches
uint8_t HapTouch::getResponseCode() {
  uint8_t c;
  Wire.requestFrom((uint8_t) _i2c_addr, (uint8_t) 1);  
  while (Wire.available()) {
    c = Wire.read();
    if (c != 0x0c) return (uint8_t) c;    
  }
}
uint8_t HapTouch :: getResponseCode ( ) { uint8_t c ; Wire . requestFrom ( ( uint8_t ) _i2c_addr , ( uint8_t ) 1 ) ; while ( Wire . available ( ) ) { c = Wire . read ( ) ; if ( c != 0x0c ) return ( uint8_t ) c ; } }
getResponseCode()
Used by the other command methods to retrieve the HapTouch controller
response code after sending a command.
getResponseCode () Used by the other command methods to retrieve the HapTouch controller response code after sending a command .
// Get the Response Code // If we get WAIT_FOR_RESPONSE, then try again