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
Exploring Raspberry Pi
Expand Raspberry Pi capabilities with fundamental engineering principles Exploring Raspberry Pi is the innovators guide to …
book
Embedded Systems Architecture
A comprehensive guide to reaping the benefits of architectural modeling in embedded design About This Book …
book
Embedded Programming with Modern C++ Cookbook
Explore various constraints and challenges that embedded developers encounter in their daily tasks and learn how …
book
Learning Computer Architecture with Raspberry Pi
Use your Raspberry Pi to get smart about computing fundamentals In the 1980s, the tech revolution …