User Manual
104
For C language users:
Step 2: Change directory
cd /home/pi/SunFounder_SensorKit_for_RPi2/C/20_photoresistor/
Step 3: Compile
gcc photoresistor.c –lwiringPi
Step 4: Run
sudo ./a.out
For Python users:
Step 2: Change directory
cd /home/pi/SunFounder_SensorKit_for_RPi2/Python/
Step 3: Run
sudo python 20_photoresistor.py
Now, change light intensity (e.g. cover the module with a pad), and the value printed on
the screen will change accordingly.










