Adjusts the great pinscape controller to work with a cheap linear potentiometer instead of the expensive CCD array

Dependencies:   USBDevice mbed

Fork of Pinscape_Controller by Mike R

Revision:
2:c174f9ee414a
Parent:
1:d913e0afb2ac
Child:
3:3514575d4f86
--- a/MMA8451Q/MMA8451Q.cpp	Wed Jul 16 23:33:12 2014 +0000
+++ b/MMA8451Q/MMA8451Q.cpp	Tue Jul 22 04:33:47 2014 +0000
@@ -79,10 +79,9 @@
     uint8_t d4[2] = {REG_CTRL_REG_2, (d3[0] & ~MODS_MASK) | MODS1_MASK};
     writeRegs(d4, 2);
     
-    // set 50 Hz mode
+    // set 100 Hz mode
     uint8_t d5[1];
     readRegs(REG_CTRL_REG_1, d5, 1);
-    
     uint8_t d6[2] = {REG_CTRL_REG_1, (d5[0] & ~DR_MASK) | DR_100_HZ};
     writeRegs(d6, 2);