Control the green and blue LED on the Cubieboard with python.
Tested with python 2.7+ and 3+
### Enable LED support on the Cubieboard
In order to use this module you need a Cubieboard (obviously), running some
sort of linux. I have tested on Archlinux arm, but anything that run on the
Cubieboard should work.
Then you need to activate the LEDs as [described here](http://linux-sunxi.org/Cubieboard/Programming/StatusLEDs).
I also had to load the module:
leds_sunxi
### Usage
The module is pretty simpel. This is how it works:
```python
>>> import Cubie.leds
# turn on the blue LED
>>> Cubie.leds.on("blue")
True
# check status of blue LED
>>> Cubie.leds.status("blue")
1
# Turn off blue LED
>>> Cubie.leds.off("blue")
True
# check status again
>>> Cubie.leds.status("blue")
0
# It is also possible to add a trigger, eg. the mmc0 trigger which will make
# the LED blink on SD card activity
>>> Cubie.leds.trigger("green", "mmc0")
True
>>> Cubie.leds.trigger_status("green")
'mmc0'
```
Metadata
Release files for cubieleds 0.1
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 |
|---|---|---|---|---|
| cubieleds-0.1.tar.gz | 17.6 kB | Without provenance | Details for cubieleds-0.1.tar.gz |
Release files / cubieleds-0.1.tar.gz
| Download URL | cubieleds-0.1.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfbabe49f0de541e28dafca46ecbc0ea0f8bd7f7250dec46cde2683ca5c41057
|
|
BLAKE2b-256 checksum How to use checksums |
057d75a942f5df4efcd579df07a68d22768c9549d9b09f0946b17750cb4970ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cubieleds 0.1
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.