lib8inputs
This is the python library to control the Four Relays four Inputs 8-Layer Stackable Card for Raspberry Pi.
Install
sudo pip install SM8inputs
Usage
Now you can import the megaio library and use its functions. To test, read relays status from the board with stack level 0:
~$ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lib8inputs
>>> lib8inputs.get_opto_all(0)
0
>>>
Functions
get_opto(stack, channel)
Get one input state.
stack - stack level of the 8-Inputs card (selectable from address jumpers [0..7])
channel - opto input channel number (id) [1..8]
return 0 == opto off; 1 - opto on
get_opto_all(stack)
Return the state of all opto inputs.
stack - stack level of the 8-Inputs card (selectable from address jumpers [0..7])
lib8inputs
This is the python library to control the 4-RELAYS Heavy Duty Stackable Card for Raspberry Pi.
Install
sudo pip install SM8inputs
Usage
Now you can import the megaio library and use its functions. To test, read relays status from the board with stack level 0:
~$ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lib8inputs
>>> lib8inputs.get_opto_all(0)
0
>>>
Functions
get_opto(stack, channel)
Get one input state.
stack - stack level of the 8-Inputs card (selectable from address jumpers [0..7])
channel - opto input channel number (id) [1..8]
return 0 == opto off; 1 - opto on
get_opto_all(stack)
Return the state of all opto inputs.
stack - stack level of the 8-Inputs card (selectable from address jumpers [0..7])
return - [0..255]
Metadata
Release files for sm8inputs 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sm8inputs-1.0.2.tar.gz | 3.5 kB | Without provenance | Details for sm8inputs-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sm8inputs-1.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sm8inputs-1.0.2-py2.py3-none-any.whl |
Total release size: 7.0 kB
Release files / sm8inputs-1.0.2.tar.gz
| Download URL | sm8inputs-1.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69e97369c67d49d44eac930b261815920d63aafccb644e35ddbc411d241d2a1f
|
|
BLAKE2b-256 checksum How to use checksums |
c9bb758e770ab8aac335d7658acffcb307a8e717482c2b348c3be7dc01da8ca6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Release files / sm8inputs-1.0.2-py2.py3-none-any.whl
| Download URL | sm8inputs-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0bfb6998367e6dba103630814884c442508efa9cde47151adf9f1439fa1b24b9
|
|
BLAKE2b-256 checksum How to use checksums |
0f6209cc87c50706d43f2c8ed6204a33ab17336e3e40b1854190f408a2155e18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Security for sm8inputs 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.