Forum Replies Created

Viewing 1,006 post (of 1,006 total)
  • Author
    Posts
  • Renzo Mischianti
    Keymaster

      Hi Michiel

      now It’s possible to check the status with

      if (pcf8574.begin()){
      Serial.println("pcf8574 started!");
      }else{
      Serial.println("pcf8574 not started!");
      }

      or

      if (pcf8574.digitalWrite(P7, startVal)){
      Serial.println("Write ok");
      }else{
      Serial.println("Write not ok");
      }

      It’s also possible to get last writeStatus with

      uint8_t getTransmissionStatusCode() const {
      return transmissionStatus;
      }
      bool isLastTransmissionSuccess(){
      return transmissionStatus==0;
      }

      Bye Renzo

    Viewing 1,006 post (of 1,006 total)