Skip to content

Can't understand the output #1

@calania

Description

@calania

Hello, I have for a while now wanted to move an Arduino program that is controlled by an IR remote over to the raspberry pi. But it has been harder than I expected to find a python package that made decoding ir remotes easy. I found this package and got the example program working to some extent. The thing is that I don't understand what the output means. I am expecting that when I press a button on my remote that I should get a hex value printed. Instead, I get, what to me is a random number.

Starting IR remote sensing using DECODE function and verbose setting equal True Use ctrl-c to exit program Turning off verbose setting and setting up callback 45.14718055725098 72 . 94.50411796569824 72 .

I am guessing that there is some setting that I should change but I can't figure out which. I forexample know that one of my hexcodes are C81 so I have changed in the exaple file so that it is

elif code == 0xC81:
print('D')

But I still only get a dot in the shell. I tried changing

else:
print('.') # unknown code

to

else:
print(code) # unknown code

But then it only prints either a 0 or -1. Does somebody have any idea what is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions