Skip to content

Instantly share code, notes, and snippets.

@duppypro
duppypro / Sample_MMA8452Q_Device.nut
Last active Dec 26, 2015
Sample Electric Imp code for reading i2c registers of MMA8452Q accelerometer See electricimp.com See https://www.sparkfun.com/products/10955 for MMA8452Q accelerometer breakout board
View Sample_MMA8452Q_Device.nut
// Sample code using MMA8452Q accelerometer
// Electric Imp Device Squirrel code
// License:
// This code is provided under the Creative Commons Attribution-ShareAlike 3.0 License
// http://creativecommons.org/licenses/by-sa/3.0/us/legalcode
// If you find bugs report to duppypro on github or @duppy #MMA8452Q on twitter
// If you find this useful, send a good word to @duppy #MMA8452Q
// Thanks to @jayrz for finding the first bug.
/////////////////////////////////////////////////