platypush/plugins/gpio/zeroborg/lib/__init__.py
def HasNewIrMessage(self):
        """
state = HasNewIrMessage()

Reads the new IR message received flag.
If False there has been no messages to the IR sensor since the last read.
If True there has been a new IR message which can be read using GetIrMessage().
        """
        try:
            i2cRecv = self.RawRead(COMMAND_GET_NEW_IR, I2C_NORM_LEN)
        except KeyboardInterrupt:
            raise
        except Exception as e:
            self.Print('Failed reading new IR message received flag!')
            raise e

        if i2cRecv[1] == COMMAND_VALUE_OFF:
            return False
        else:
            return True

state = HasNewIrMessage()

Reads the new IR message received flag.
If False there has been no messages to the IR sensor since the last read.
If True there has been a new IR message which can be read using GetIrMessage().
        
state = HasNewIrMessage()
Reads the new IR message received flag.
If False there has been no messages to the IR sensor since the last read.
If True there has been a new IR message which can be read using GetIrMessage().
state = HasNewIrMessage () Reads the new IR message received flag . If False there has been no messages to the IR sensor since the last read . If True there has been a new IR message which can be read using GetIrMessage () .
def HasNewIrMessage(self):
        try:
            i2cRecv = self.RawRead(COMMAND_GET_NEW_IR, I2C_NORM_LEN)
        except KeyboardInterrupt:
            raise
        except Exception as e:
            self.Print('Failed reading new IR message received flag!')
            raise e
        if i2cRecv[1] == COMMAND_VALUE_OFF:
            return False
        else:
            return True
def HasNewIrMessage ( self ) : try : i2cRecv = self . RawRead ( COMMAND_GET_NEW_IR , I2C_NORM_LEN ) except KeyboardInterrupt : raise except Exception as e : self . Print ( 'Failed reading new IR message received flag!' ) raise e if i2cRecv [ 1 ] == COMMAND_VALUE_OFF : return False else : return True
state = HasNewIrMessage()
Reads the new IR message received flag.
state = HasNewIrMessage () Reads the new IR message received flag .
"""
state = HasNewIrMessage()

Reads the new IR message received flag.
If False there has been no messages to the IR sensor since the last read.
If True there has been a new IR message which can be read using GetIrMessage().
        """
self