RPiGPIO.makertools/README.md

24 lines
813 B
Markdown
Raw Permalink Normal View History

2021-12-04 18:31:41 +00:00
# RPiGPIO.makertools
2021-12-04 10:35:17 +00:00
2021-12-04 18:34:42 +00:00
Python library for using the GPIO on RaspberryPi with examples.
2021-12-04 15:01:03 +00:00
# Installation
To install the RPiGPIO.makertools library, you first have to clone the git repo:
```
git clone https://git.privacynerd.de/dotmakertools/RPiGPIO.makertools.git
```
After this is done, cd into RPiGPIO.makertools and type:
```
python3 setup.py install
```
This will copy the required package files to your python installation point (or, in case of a virtual environment, to the _lib_ directory of the env folder) and install all requirements.
2021-12-04 18:40:25 +00:00
When you want to use devices which communicate over I²C, you probably first have to enable with `raspi-config`:
- _Interface Options_
- _I2C_
- **Yes** and **OK**
2021-12-04 15:01:03 +00:00
That's it! Now you can use the library in Python by importing it:
```python3
import RPiGPIOmakertools
```