https://github.com/luxedo/fakerpigpio
Fake RPi.GPIO module for testing
https://github.com/luxedo/fakerpigpio
fake gpio python python-library raspberry-pi rpi
Last synced: 8 months ago
JSON representation
Fake RPi.GPIO module for testing
- Host: GitHub
- URL: https://github.com/luxedo/fakerpigpio
- Owner: luxedo
- License: gpl-3.0
- Created: 2015-12-12T20:40:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-12-19T22:56:36.000Z (over 5 years ago)
- Last Synced: 2025-09-20T09:15:55.212Z (9 months ago)
- Topics: fake, gpio, python, python-library, raspberry-pi, rpi
- Language: Python
- Size: 24.4 KB
- Stars: 14
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# fakeRPiGPIO
[](https://badge.fury.io/py/fakeRPiGPIO)
[](https://www.gnu.org/licenses/gpl-3.0)
This package is used to simulate the
[RPi.GPIO](https://pypi.python.org/pypi/RPi.GPIO) module.
This package only contains the functions in the RPi.GPIO package without
the functionality. Useful to debug code outside the RPi.
To avoid printing the function calls to the package, set `VERBOSE`
to `False`:
```python
from RPi import GPIO
GPIO.VERBOSE = False
more_code()
```
The following functions have minimal functionality without any error
checking: `setmode`, `getmode`, `gpio_function`, `setup`, `output`,
`input`, `cleanup`.
## License
> Python fake RPi.GPIO library
> Copyright (C) 2020 Luiz Eduardo Amaral
>
> This program is free software: you can redistribute it and/or modify
> it under the terms of the GNU General Public License as published by
> the Free Software Foundation, either version 3 of the License, or
> (at your option) any later version.
> This program is distributed in the hope that it will be useful,
> but WITHOUT ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> GNU General Public License for more details.
> You should have received a copy of the GNU General Public License
> along with this program. If not, see .