Using on board MMA8451Q on FRK25

Dependencies:   MMA8451Q mbed

Revision:
3:c9a411d4fe64
Parent:
2:b085bc47e75b
Child:
6:71e35394bb3e
diff -r b085bc47e75b -r c9a411d4fe64 main.cpp
--- a/main.cpp	Fri Oct 12 14:57:51 2012 +0000
+++ b/main.cpp	Tue Oct 23 09:37:07 2012 +0000
@@ -4,17 +4,15 @@
 DigitalOut led1(LED_RED);
 DigitalOut led2(LED_GREEN);
 
-void flip()
-{
+void flip() {
     led2 = !led2;
 }
 
-int main()
-{
+int main() {
     tick.attach(&flip, 0.7); // setup ticker to call flip led2 after 0.7 seconds
 
     // spin in a main loop.
-    while(1) {
+    while (true) {
         led1 = !led1;
         wait (0.3); // flip led1 every 0.3 seconds
     }