User Manual
116
Copy the lircrc file to /etc/lirc/lirc/:
sudo cp lircrc /etc/lirc/lirc/
Step 8: Compile
gcc ircontrol.c -lwiringPi -llirc_client
Step 9: Run
sudo ./a.out
For Python users:
Step 5: Download pylirc:
sudo apt-get install python-pylirc
Step 6: Change directory:
cd /home/pi/SunFounder_SensorKit_for_RPi2/Python/
Step 7: Run
sudo python 23_ircontrol.py
Each of the top three rows of buttons on the remote control represents a kind of color, i.e.
red, green, and blue, top to bottom. Each column represents off, light, and dark. For example,
press the second button (light) on the first row (red), and the LED will flash light red. You can
use the remote to generate 27 colors in total (including all the LEDs off). Try to change the
color of the RGB LED with the 9 buttons!










