code: def _update(self, mask):
          
          if self.reporting:
              for pin in self.pins:
                  if pin.mode is INPUT:
                      pin_nr = pin.pin_number - self.port_number * 8
                      pin.value = (mask & (1 << pin_nr)) > 0
docs: Update the values for the pins marked as input with the mask.