Book 8

Working with Raspberry Pi

Contents at a Glance

  1. Chapter 1: Introducing Raspberry Pi
    1. Introducing the Raspberry Pi
    2. Considering Raspberry Pi Versions
    3. Setting Up a Raspberry Pi
    4. Installing the Raspbian Operating System
    5. Logging In to Raspberry Pi
    6. Understanding the File System
    7. Fixing the Keyboard
    8. Writing Your First Raspberry Pi Program
    9. Examining GPIO Ports
    10. Connecting an LED to a GPIO Port
    11. Flashing an LED in Python
    12. Configuring IDLE for Root Privileges
    13. Building a Raspberry Pi LED Flasher
    14. Project 55: Blinking an LED with a Raspberry Pi
  2. Chapter 2: Programming in Python
    1. Looking Closer at Python
    2. Building a Test Circuit
    3. Project 56: A Raspberry Pi LED Test Board
    4. Flashing the LEDs
    5. Using Comments
    6. Creating Identifiers
    7. Using Constants
    8. Using Variables
    9. Creating Your Own Functions
    10. Using If Statements
    11. Using While Loops
    12. Using For Loops
    13. Looking at Python Lists
  3. Chapter 3: Reading Digital and Analog Input
    1. Using a GPIO Port for Digital Input
    2. Checking the Status of a Switch in Python
    3. Project 57: A Push-Button-Controlled Raspberry Pi LED Flasher
    4. Reading Analog Input
    5. Enabling SPI on Your Raspberry Pi
    6. Using the MCP3008 in Python
    7. Using the mcp3008 Package
    8. Project 58: A Variable-Rate LED Flasher