Dependencies:   mbed lwip

Revision:
0:ebf712d4ccfc
Child:
1:cd69ae993250
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Sep 19 01:18:27 2009 +0000
@@ -0,0 +1,20 @@
+#include "Objects.h"
+
+/*
+ * This project uses the triple axis accelerometer and the RGB LED
+ * The x,y,z axes are assigned to the r,g,b components respectively
+ * The acceleration in a given axis will modulate it's associated colour
+ */
+
+int main() {
+
+    while(1) {
+        rgb.red(abs(acc.x()));
+        rgb.green(abs(acc.y()));
+        rgb.blue(abs(acc.z()));
+        wait (0.01);
+    }
+
+}
+
+