F

Dependencies:   TEMT6200

Fork of MMA8451Q by Emilio Monti

Revision:
4:c4d879a39775
Parent:
3:db7126dbd63f
Child:
5:e6a371766148
--- 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());