Demo of RA8875 TFT touch display on Freescale FRDM-K64F Forked from David Smart https://developer.mbed.org/users/WiredHome/

Dependencies:   RA8875 menu SDFileSystem mbed

Fork of PUB_RA8875_mPaint by David Smart

Revision:
2:cf295dad3192
Parent:
1:0fdc10700ed2
Child:
3:3b214426761d
--- a/main.cpp	Fri Jan 02 23:19:26 2015 +0000
+++ b/main.cpp	Sat Jan 03 15:41:51 2015 +0000
@@ -332,9 +332,9 @@
 
 void ThickLine(point_t origin, point_t p)
 {
-    double angleN = 0;
-    loc_t dy = 0;
-    loc_t dx = 0;
+    double angleN;
+    loc_t dy;
+    loc_t dx;
     point_t s = { 0, 0 };
     point_t e = { 0, 0 };
 
@@ -344,7 +344,7 @@
     dy = p.y - origin.y;
     dx = p.x - origin.x;
     INFO("delta (%+3d,%+3d)", dx,dy);
-    angleN = atan2((double)(p.y-origin.y), (double)(p.x-origin.x));
+    angleN = atan2((double)(dy), (double)(dx));
     if (pensize == 1) {
         lcd.line(origin, p, rgb);
     } else {