Lesson 22: Ir Remote Control Led - Elecrow Raspberry Pi & Arduino Starter Kit User Manual

Table of Contents

Advertisement

The code is quite simple but a little difficult to understand as we use sockets, it's not as clean as previous code we
used.
We receive data rom the IR LED and then we convert the data, after converting it we are able to tell which button
exactly was pressed on the IR remote. Then we print it using the command print(Out[0])
Compile the script by going into the samples directory and running: python2 IR.py
Application effect
Running the program will allow us to read the IR code through the IR remote, press the IR remote buttons to see
them on the terminal screen after the python script captures them using the IR receiver.
LESSON 23: IR REMOTE CONTROL LED
97 of 114

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Raspberry Pi & Arduino Starter Kit and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents