aitendo TFT2P0327 (driver:S6D0151 Sumsung)

Dependencies:   S6D0151 mbed

Revision:
1:b19e78e9b213
Parent:
0:dce0a01aac69
--- a/main.cpp	Sun Aug 23 12:33:24 2015 +0000
+++ b/main.cpp	Sun Oct 02 13:27:33 2016 +0000
@@ -9,7 +9,7 @@
 #include "Prototype29x28.h"
 #include "aimasu_80x103.h"
 
-S6D0151_TFT TFT(PTD2, PTD3, PTD1, PTA13, PTD5,"TFT"); // mosi, miso, sclk, cs, rs, reset
+S6D0151_TFT TFT(PTD2, PTD3, PTD1, PTA13, PTD5,"TFT"); // mosi, miso, sclk, cs, reset
 
 //Serial pc(USBTX, USBRX); // tx, rx
 Ticker tt;
@@ -21,6 +21,8 @@
     TFT.claim(stdout);      // send stdout to the TFT display 
     TFT.background(Black);    // set background to black
     TFT.foreground(White);    // set chars to white
+
+    TFT.set_orientation( 0 );
     TFT.cls();
     TFT.locate(0,0);
 
@@ -35,6 +37,7 @@
     TFT.set_font((unsigned char*) Consolas7x13);  // select the font
 
     while(1){
+        TFT.set_orientation( 2 );
         TFT.background(White);
         TFT.cls();
         wait(0.5);
@@ -44,6 +47,7 @@
         TFT.set_font((unsigned char*) Consolas7x13);  // select the font
         
         wait(3);
+        TFT.set_orientation( 0 );
         TFT.background(Black);
         TFT.foreground(White);
         TFT.cls();