Fork with support for ILI9341 controller
Dependents: CANary_9341 CANary
Fork of TOUCH_TFTx2 by
Revision 13:220e3da2dd00, committed 2013-03-24
- Comitter:
- TickTock
- Date:
- Sun Mar 24 01:25:53 2013 +0000
- Parent:
- 12:b7fb9d3ae5ea
- Child:
- 14:c58c98c5020a
- Commit message:
- Added setfont, foreground, and background to calibration routine (so doesn't have to be set by the caller)
Changed in this revision
TOUCH_TFTx2.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/TOUCH_TFTx2.cpp Sun Mar 03 18:06:29 2013 +0000 +++ b/TOUCH_TFTx2.cpp Sun Mar 24 01:25:53 2013 +0000 @@ -15,6 +15,7 @@ #include "TOUCH_TFTx2.h" #include "mbed.h" +#include "Arial12x12.h" #define threshold 0x8000 // threshold to detect pressed #define accuracy 1000 // noise filter @@ -194,6 +195,9 @@ int pos_x, pos_y; point p; seldisp=1; // select right display + set_font((unsigned char*) Arial12x12); + foreground(White); + background(Black); cls(); line(0,3,6,3,White); line(3,0,3,6,White);