Book description
You have a Pi 2, but what exactly can you do with it? This book takes you on a tour of the Pi 2 hardware and all of the fantastic things that you can do to create innovative and useful projects with your Pi. Start with creating a workstation that does actual work, and move into installing a custom kernel, creating a clock, learning the ins and outs of the GPIO interface, and pick up some useful C++ skills along the way.
Warren Gay, author of Mastering the Raspberry Pi, takes you through a set of experiments to show just what the Pi 2 is capable of and how you can use it to make your own fantastic creations.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- Acknowledgments
- Chapter 1: Introduction
- Chapter 2: Workstation
- Chapter 3: The Matrix (CPU Utilization)
- Chapter 4: Installing a Kernel
-
Chapter 5: 3 GPIO gp Command
- Unix Command Line Convention
- The gp Command
-
Displaying GPIO Settings
- Configuring GPIO as Input
- Configuring GPIO as Output
- Configuring GPIO as Alternate Function
- Chart of Alternate Functions
- Configuring GPIO Pullup/Pulldown
- Setting GPIO Output
- Reading GPIO Input
- Returning GPIO Value to Shell
- Reading 32 GPIOs
- Read GPIO Alternate Function
- Blinking Output GPIO
- Monitoring GPIO Input
- Configuring GPIO Slew Rate
- Configuring GPIO Hysteresis
- Configuring GPIO Drive Level
- Summary
- Bibliography
- Chapter 6: General Purpose Clock
- Chapter 7: Pulse Width Modulation
- Chapter 8: Physics of the GPIO Interface
- Chapter 9: PiSpy
- Chapter 10: Debouncing
-
Chapter 11: C++ Quick Start
- C++ Standards
- From C to C++
- Classes and Structs
- Standard Template Library
- Container std::vector
- STL Iterators
- Container::operator[ ]
- Container::at( )
- Ordered and Unordered Maps
- Initializer Lists
- Iterating Maps
- References
- Map vs. Set
- Container std::deque
- Safe Iterators
- Containers of Containers
- C++ Strings
- String Streams
- Predefined Compiler Macros
- Summary
- Bibliography
- Chapter 12: Multicore Web Server
- Appendix A: Class GPIO 1
- Appendix B: Class GPIO 2
- Appendix C: Class GPIO 3
- Appendix D: Class MAX7219
- Appendix E: Class Matrix
- Appendix F: Class MTop and Diskstat
- Appendix G: Other librpi2 Classes
- Index
Product information
- Title: Exploring the Raspberry Pi 2 with C++
- Author(s):
- Release date: November 2015
- Publisher(s): Apress
- ISBN: 9781484217399
You might also like
book
Advanced Raspberry Pi: Raspbian Linux and GPIO Integration
Jump right into the pro-level guts of the Raspberry Pi with complete schematics and detailed hardware …
book
Internet of Things with Raspberry Pi 3
Unleash the power of the Raspberry Pi 3 board to create interesting IoT projects About This …
book
Jumpstarting Raspberry Pi Vision
Learn how to teach a Single Board Computer like a Raspberry Pi to recognize individual faces, …
book
GNU/Linux Rapid Embedded Programming
An annotated guide to program and develop GNU/Linux Embedded systems quickly About This Book Rapidly design …