Skip to main content

A package for managing E/S of Raspberry pi or PCduino. Gestion des E/S d'un Raspberry PI ou d'un pcduino

Project description

FGPIO Lib - A package for managing E/S of Raspberry pi or PCduino
- Une librairie pour gerer les e/s d'un RPi ou d'un pcduino

This package allows to manage the following components with a Raspberry PI or pcduino
(Ce module permet de gerer les composants suivants avec un Raspberry PI ou un pcduino)

- Rpi or pcduino with rpiduino_io
- Bouton with bt_io
- Led with led_io
- lcd with lcd_io
- luminosity with lum_capteur_io
- max7219 with max7219_io
- radio controlled plugs
with rcSwitch_io et prises
- Ultrasonic distance sensor
with UltraSonic_io
- GPIO extension
MCP23017 with mcp23017_io
PCA9555 (DF ROBOT DFR0013)
with pca9555_io
- rotary encoder with rotary_encoder_io
- a menu on lcd abd rotary encoder
with f_menu

All component can be use with thread

Installation :
pip install FGPIO

Exemple :

from FGPIO.rpiduino_io import *
from FGPIO.led_io import *
pc = rpiduino_io()
led = led_io(pc.logical_pin(2))

def action_bt_change():
if bt.th_readed():
print "bt Pushed."

bt = bt_io(pc.logical_pin(10), True, action_bt_change)

Project details

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page