SB-HW-8.1

Fork of MMA8451Q8 by Stanley Cohen

Revision:
4:c4d879a39775
Parent:
3:db7126dbd63f
diff -r db7126dbd63f -r c4d879a39775 MMA8451Q.h
--- a/MMA8451Q.h	Fri Oct 12 11:30:34 2012 +0000
+++ b/MMA8451Q.h	Fri Oct 12 11:35:07 2012 +0000
@@ -30,13 +30,13 @@
 * 
 * #define MMA8451_I2C_ADDRESS (0x1d<<1)
 * 
+* int main(void) {
+* 
 * MMA8451Q acc(P_E25, P_E24, MMA8451_I2C_ADDRESS);
 * PwmOut rled(LED_RED);
 * PwmOut gled(LED_GREEN);
 * PwmOut bled(LED_BLUE);
 * 
-* int main(void) {
-* 
 *     while (true) {       
 *         rled = 1.0 - abs(acc.getAccX());
 *         gled = 1.0 - abs(acc.getAccY());