Skip to main content

The Microstack node functions module.

Project description

Common functions for interacting with Microstack node boards (Accelerometer,
GPS, etc).


Controlling the on board OK LED (Raspberry Pi)

# disable mmc0 for led
echo none >/sys/class/leds/led0/trigger

# enable mmc0 for led
echo mmc0 >/sys/class/leds/led0

# turn on led
echo 1 >/sys/class/leds/led0

# turn off led
echo 0 >/sys/class/leds/led0
Change Log

- Some more fiddling for PyPi.

- mma8452 accelerometer now returns dictionary for xyz instead of tuple.
This was confusing as it's unexpected for a method to return three values.
*Explicit is better than implicit.*
- Improved docs -- uploaded to readthedocs.

- Fixed mma8452 accelerometer bug. `get_xyz()` now returns values in Gs no
matter what the range is set as. That is, set the range to be 8G and the
`get_xyz()` will return 1 is the accelerometer is only experiencing 1G.
- Changed mma8452 register implementation.
- Added mma8452 SI units method.

- Moved internal hardware drivers to hardware directory.
- Added display and humidity/temperature sensor drivers.
- Added examples for drivers.
- NOT updated HTML docs for new changes. This will be done in the next

- Changed docs for new install instructions (altered name) and also
changed default address for accelerometer.

- Inital structure.

Project details

Download files

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

Files for microstacknode, version 0.4.5
Filename, size File type Python version Upload date Hashes
Filename, size microstacknode-0.4.5.tar.gz (24.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page