Imayan chan
/
FRDM_TFT2P0327_fix
aitendo TFT2P0327 (driver:S6D0151 Sumsung)
Revision 1:b19e78e9b213, committed 2016-10-02
- Comitter:
- king33jp
- Date:
- Sun Oct 02 13:27:33 2016 +0000
- Parent:
- 0:dce0a01aac69
- Commit message:
- set_orientation added
Changed in this revision
S6D0151.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/S6D0151.lib Sun Aug 23 12:33:24 2015 +0000 +++ b/S6D0151.lib Sun Oct 02 13:27:33 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/king33jp/code/S6D0151/#de7db46990d0 +https://developer.mbed.org/users/king33jp/code/S6D0151/#18920a7a693e
--- 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();