
Content
About the Raspberry Pi................................................................................................................- 1 -
Raspberry Pi Pin Numbering Introduction...................................................................................- 2 -
Raspberry Pi GPIO Library Introduction.....................................................................................- 4 -
How to use the wiringPi and the RPi.GPIO.................................................................................- 6 -
Lesson 1 Blinking LED..............................................................................................................- 10 -
Lesson 2 Buzzer.........................................................................................................................- 16 -
Lesson 3 Controlling an LED with a button ..............................................................................- 20 -
Lesson 4 Tilt Switch...................................................................................................................- 25 -
Lesson 5 LED Flowing Lights...................................................................................................- 28 -
Lesson 6 Breathing LED............................................................................................................- 31 -
Lesson 7 Controlling a RGB LED with PWM...........................................................................- 35 -
Lesson 8 7-segment display.......................................................................................................- 38 -
Lesson 9 Dot-matrix display......................................................................................................- 42 -
Lesson 10 LCD1602 ..................................................................................................................- 46 -
Lesson 11 Photoresistor .............................................................................................................- 50 -
Lesson 12 Controlling an LED through LAN............................................................................- 53 -
Lesson 13 How to control a servo..............................................................................................- 57 -
Lesson 14 A Simple Voltmeter................................................................................................... - 60 -
Lesson 15 DC motor..................................................................................................................- 63 -