breadpi-1.0
توضیحات
BreadPi hardware support package
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | breadpi-1.0 |
| نام | breadpi |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | ['SB Components'] |
| ایمیل نگهدارنده | ['suppport@sb-components.co.uk'] |
| نویسنده | SB Components |
| ایمیل نویسنده | rd@sb-components.co.uk |
| آدرس صفحه اصلی | https://github.com/sbcshop/BreadPi |
| آدرس اینترنتی | https://pypi.org/project/breadpi/ |
| مجوز | GNU |
# BreadPi
Packages for BreadPi, a hardware designed by SB Components
Install breadpi package on your Raspberry Pi using
`pip3 install breadpi`
or
`python3 -m pip install breadpi`
import the module with
`from breadpi import BreadPi`
Access PCF8591 or GPIOs directly
`bread_pi = BreadPi()`
`data = bread_pi.read_analog(register=1) # Read Data from AIN1`
`bread_pi.write_analog(register=1, value=100) # Covert Digital data to
analog`
use led_on, led_off, buzzer_on, buzzer_off or take digital inputs from
buttons using button function of BreadPi class.
You can pass string printed on BreadPi like, 'L1' or 'SW1' or customized pin
number like 29, 31 directly to the functions.
نحوه نصب
نصب پکیج whl breadpi-1.0:
pip install breadpi-1.0.whl
نصب پکیج tar.gz breadpi-1.0:
pip install breadpi-1.0.tar.gz