Mirror with some correction

Dependencies:   mbed FastIO FastPWM USBDevice

Revision:
102:41d49e78c253
Parent:
100:1ff35c07217c
--- a/AEAT6012/AEAT6012.h	Fri Nov 29 05:38:07 2019 +0000
+++ b/AEAT6012/AEAT6012.h	Mon Dec 02 02:01:30 2019 +0000
@@ -97,6 +97,10 @@
         // done - leave CS high between readings
         cs = 1;
         
+        // The orientation in our mounting design reads the angle in the
+        // reverse of the direction we want, so flip it.
+        result = 4095 - result;
+        
         // return the result
         return result;
     }