Python Programming for Raspberry Pi, Sams Teach Yourself in 24 Hours
frequency in the PWM() method) until you press Ctrl+C. Detecting GPIO Input Using the GPIO pins to detect input signals is a lit ...
FIGURE 24.4 The Pi Cobbler input circuit diagram. Remember to keep the LED and resistor plugged into the GPIO 18 pin because you ...
to a LOW signal). There are two ways to implement a pull-up or pull-down: Hardware—Connect the GPIO 18 pin to either the 3.3V vo ...
25: print('End of test') The code sets up the GPIO 18 pin for output (line 7) and then the GPIO 24 and GPIO 25 pins for input (f ...
button, the signal goes from HIGH to LOW.) When the event occurs, the program is released and continues processing. The downside ...
32: print('End of program') The script2405.py code registers two events—one for each button. In this project, the code goes into ...
b. setup(18, GPIO.OUT) c. outout(18) d. wait_for_edge(18, GPIO.FALLING) 2. The GPIO pin numbers on the Raspberry Pi match the GP ...
Part VII: Appendix APPENDIX A Loading the Raspbian Operating System onto an SD Card ...
Appendix A. Loading the Raspbian Operating System onto an SD Card In order to boot your Raspberry Pi, you need a properly create ...
Load your SD card into your SD card reader. Take note of the drive letter that Windows assigns to it (for example, F:). If you ...
Watch Out!: Wiping the Wrong Disk If you select the wrong letter in Win32DiskImager window’s Device section, you might wipe out ...
Unmount the device file you discovered in step 1. Type the command umount media_card_device_file_name (where media_card_device_ ...
[sudo] password for christine: $ This command moves the image file to the SD card. Be patient at this point. It will take a long ...
FIGURE A.5 The extracted RPi-sd card builder utility. Insert your SD card into your SD card reader. It should appear as “Untitl ...
FIGURE A.7 The RPi-sd card builder utility asking for the SD card. Watch Out!: Which One Is My SD Card? This step can be very co ...
FIGURE A.8 A correctly created SD card. ...
Index Symbols // (floor division operator), 98 {} placeholder, 102 - 103 (asterisk), as pattern for regular expressions, 329 “ ...
advanced regular expression features, 330 - 332 Akerman, Dave, 9 allowing input in Python scripts, 88 - 89 altering strings with ...
Boolean comparisons, 124 - 125 booting directly to GUI, 35 - 36 Raspberry Pi, 21 - 23 troubleshooting, 24 - 25 break statement, ...
Checkbutton widget, 373 - 375 classes, 278 - 279 the class problem, 293 - 294 default attribute values, 279 - 280 deleting, 285 ...
«
19
20
21
22
23
24
25
26
27
28
»
Free download pdf