Skip to content

Latest commit

 

History

History

sample-code

Raspberry Pi Sample Code

This folder contains example Python code to use the Pi Camera and General Purpose Input and Output (GPIO) pins. To use the code samples:

  1. Download the code samples onto your Raspberry Pi.
  2. Follow the wiring diagrams in the schematics folder.
  3. Download code libraries using pip. For example: sudo pip install gpiozero
  4. Open the code sample in your preferred Python editor
  5. Make any required updates as indicated in the code sample comments.
  6. Run the program!
    • Run the sample programs with Python3: sudo python3 program_name.py

Contents

Wiring Diagrams

Check the schematics folder for wiring diagrams for relevant examples.

All schematics were made with Fritzing.

Resources and Going Forward

Beginner Resources

All of the following resources are created and maintained by the Raspberry Pi Foundation.

Intermediate and Advanced Resources

Jitter Free Servo Resources

Contributions? Questions? Requests?

As mentioned in the main README, we welcome contributions! Please read through the README and Code of Conduct to submit a pull request.

Please open an issue if you have questions or requests!