更新时间:2021-07-02 19:46:53
coverpage
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you will need
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
About the Raspberry Pi
What we will cover
A little history
The bill of parts
Installing our software
Using Etcher to copy our image
Connecting to GPIO headers
Hammer headers
Solder headers
Getting your equipment ready
Headless access
Enabling SSH access
Setting up your Wi-Fi network
Connecting to your Pi
SSH from Windows
SSH from macOS
SSH from Linux
Final setup
Changing your password
Changing the hour hostname
Installing basic software
Basic electronics
Wiring up the electronics
Writing the Python program
Breaking down the program
Summary
Scrolling LED Badge
Putting the hardware together
Wiring up the Scroll pHAT HD
Wiring up the Pi
Attaching the Pi and the Scroll pHAT HD
Installing and writing the software
Testing our Scoll pHAT HD
Our scrolling badge program
Making our program start automatically
Creating our systemd service definition
Finalizing our hardware setup
Wiring an off switch to our Pi Zero
Write our shutdown program
Making our shutdown program run automatically
Putting it all together
Installing the Pi Zero into its case
Making our Scroll pHAT HD badge
Sewable LEDs in Clothing
What We Will Cover
Modifying our item of clothing
Our hidden pocket
Adding our sewable LEDs
Connecting our Pi Zero
Writing our Python program
Testing our LEDs
Our final LED program
A Motion-Reactive LED Cap
Connecting our hardware
Connecting our accelerometer
Testing our accelerometer
Connecting our Blinkt
Testing Blinkt
Modifying our cap
Writing our program
Understanding our accelerometer readings
What did we just do?
A Tweet-Activated LED T-Shirt
Creating our personal t-shirt design
Adding our LEDs to our fabric
Writing our main Python program
Preparing your Twitter account