Skip to content

Source code snippets and examples for programming Raspberry Pi.

License

Notifications You must be signed in to change notification settings

StMaHa/raspberry-examples

Repository files navigation

raspberry-examples

Source code snippets and examples for Raspberry Pi.

Examples...
...should be easy to undestand.
...should use libraries already available on the Raspberry Pi (no installation needed, no third party libraries if possible)

⚠️ Attention ⚠️
But nevertheless, might contain failures or become invalid after some time.
Think twice using the GPIO pins at your Raspberry Pi. I am not responsible if your Pi will be damaged.

Download / clone the repository to your computer:

git clone https://github.com/StMaHa/raspberry-examples.git

To update already cloned repository, do the following steps:

cd raspberry-examples
git fetch
git rebase

GPIO pin Header

⚠️ ATTENTION ⚠️
Allways keep in mind, that the current of the GPIO pins is limited and should not be exceeded.
Also the voltage of the GPIO pins is limited. The voltage of an input pin must not exceed 3.3V.
If a device, which needs higher voltage (e.g. 5V), should be connected to the Raspberry Pi, please use a voltage devider or a level shifter.
For the correct limits please have a look to the official Raspberry Pi web pages.
GPIO pin header

Default GPIO 'pull' state:
GPIO01 - GPIO08: HIGH
GPIO09 - GPIO27: LOW

Wiki for more information

HowTo

LICENSE

See the LICENSE file for license rights and limitations.


(c) Raspberry Pi is a trademark of the Raspberry Pi Foundation.