Skip to main content

A module to control Cubieboard LEDs

Project description

# Cubieboard LED python module

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](
I also had to load the module:


### Usage

The module is pretty simpel. This is how it works:

>>> import Cubie.leds

# turn on the blue LED
>>> Cubie.leds.on("blue")
# check status of blue LED
>>> Cubie.leds.status("blue")
# Turn off blue LED
# check status again
>>> Cubie.leds.status("blue")

# 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")
>>> Cubie.leds.trigger_status("green")

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cubieleds-0.1.tar.gz (17.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page