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

Reads the last IR message which has been received and clears the new IR message received flag.
Returns the bytes from the remote control as a hexadecimal string, e.g. 'F75AD5AA8000'
Use HasNewIrMessage() to see if there has been a new IR message since the last call.
        """
        # noinspection PyBroadException
        try:
            i2cRecv = self.RawRead(COMMAND_GET_LAST_IR, I2C_LONG_LEN)
        except KeyboardInterrupt:
            raise
        except Exception as e:
            self.Print('Failed reading IR message! {}'.format(str(e)))
            return

        message = ''
        for i in range(IR_MAX_BYTES):
            message += '%02X' % (i2cRecv[1 + i])
        return message.rstrip('0')

message = GetIrMessage()

Reads the last IR message which has been received and clears the new IR message received flag.
Returns the bytes from the remote control as a hexadecimal string, e.g. 'F75AD5AA8000'
Use HasNewIrMessage() to see if there has been a new IR message since the last call.
        
message = GetIrMessage()
Reads the last IR message which has been received and clears the new IR message received flag.
Returns the bytes from the remote control as a hexadecimal string, e.g. 'F75AD5AA8000'
Use HasNewIrMessage() to see if there has been a new IR message since the last call.
message = GetIrMessage () Reads the last IR message which has been received and clears the new IR message received flag . Returns the bytes from the remote control as a hexadecimal string e . g . ' F75AD5AA8000 ' Use HasNewIrMessage () to see if there has been a new IR message since the last call .
def GetIrMessage(self):
        try:
            i2cRecv = self.RawRead(COMMAND_GET_LAST_IR, I2C_LONG_LEN)
        except KeyboardInterrupt:
            raise
        except Exception as e:
            self.Print('Failed reading IR message! {}'.format(str(e)))
            return
        message = ''
        for i in range(IR_MAX_BYTES):
            message += '%02X' % (i2cRecv[1 + i])
        return message.rstrip('0')
def GetIrMessage ( self ) : try : i2cRecv = self . RawRead ( COMMAND_GET_LAST_IR , I2C_LONG_LEN ) except KeyboardInterrupt : raise except Exception as e : self . Print ( 'Failed reading IR message! {}' . format ( str ( e ) ) ) return message = '' for i in range ( IR_MAX_BYTES ) : message += '%02X' % ( i2cRecv [ 1 + i ] ) return message . rstrip ( '0' )
message = GetIrMessage()
Reads the last IR message which has been received and clears the new IR message received flag.
message = GetIrMessage () Reads the last IR message which has been received and clears the new IR message received flag .
"""
message = GetIrMessage()

Reads the last IR message which has been received and clears the new IR message received flag.
Returns the bytes from the remote control as a hexadecimal string, e.g. 'F75AD5AA8000'
Use HasNewIrMessage() to see if there has been a new IR message since the last call.
        """ # noinspection PyBroadException
self