lib8mosind
This is the python library to control the 8-MOSFETS V3 Solid State Stackable Card for Raspberry Pi.
Install
sudo pip install SM8mosind
Usage
Now you can import the lib8mosind library and use its functions. To test, read mosfets 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 lib8mosind
>>> lib8mosind.get_all(0)
0
>>>
Functions
set(stack, mosfet, value)
Set one mosfet state.
stack - stack level of the 8-Relay card (selectable from address jumpers [0..7])
mosfet - mosfet number (id) [1..8]
value - mosfet state 1: turn ON, 0: turn OFF[0..1]
set_all(stack, value)
Set all mosfets state.
stack - stack level of the 8-Relay card (selectable from address jumpers [0..7])
value - 4 bit value of all mosfets (ex: 15: turn on all mosfets, 0: turn off all mosfets, 1:turn on mosfet #1 and off the rest)
get(stack, mosfet)
Get one mosfet state.
stack - stack level of the 8-Relay card (selectable from address jumpers [0..7])
mosfet - mosfet number (id) [1..8]
return 0 == mosfet off; 1 - mosfet on
get_all(stack)
Return the state of all mosfets.
stack - stack level of the 8-Relay card (selectable from address jumpers [0..7])
return - [0..255]
set_pwm(stack, mosfet, value)
Set one mosfet pwm fill factor.
stack - stack level of the 8-Relay card (selectable from address jumpers [0..7])
mosfet - mosfet number (id) [1..8]
value - pwm fill factor [0..100]
get_pwm(stack, mosfet)
Get one mosfet pwm fill factor.
stack - stack level of the 8-Relay card (selectable from address jumpers [0..7])
mosfet - mosfet number (id) [1..8]
return [0..100]
Metadata
Release files for sm8mosind 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 |
|---|---|---|---|---|
| sm8mosind-1.0.2.tar.gz | 4.3 kB | Without provenance | Details for sm8mosind-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sm8mosind-1.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sm8mosind-1.0.2-py2.py3-none-any.whl |
Total release size: 8.3 kB
Release files / sm8mosind-1.0.2.tar.gz
| Download URL | sm8mosind-1.0.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6141c1c8aa0d0eefe42c27d8f609fca8dbeecf100c1e37aa8511f41431c8702
|
|
BLAKE2b-256 checksum How to use checksums |
fa80c759a55387fa50413bb0db4f358241af7f880e4e37ab05595595cf06959b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Release files / sm8mosind-1.0.2-py2.py3-none-any.whl
| Download URL | sm8mosind-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d3298a290df874325a91613cd0900767ccfbcc7611b200ab1c919409d8554b45
|
|
BLAKE2b-256 checksum How to use checksums |
63a04e05ec225c7b6641fe2e5e8c8b50067f06e58e6f0dc01a552cb3b696a535
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Security for sm8mosind 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.