Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SPI_TFTx2_w9341 TFT_fonts mbed
Revision 0:3e86ee2d8c14, committed 2016-03-15
- Comitter:
- schnf30
- Date:
- Tue Mar 15 14:56:05 2016 +0000
- Child:
- 1:c72d70eb067f
- Commit message:
- Programme et Librairie for MIKROE-495
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SPI_TFTx2_w9341.lib Tue Mar 15 14:56:05 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/TickTock/code/SPI_TFTx2_ILI9341/#69ce6c784cae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TFT_fonts.lib Tue Mar 15 14:56:05 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/TickTock/code/TFT_fonts/#af72b26394d8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Mar 15 14:56:05 2016 +0000
@@ -0,0 +1,27 @@
+#include "stdio.h"
+#include "mbed.h"
+#include "SPI_TFTx2_ILI9341.h"
+#include "string"
+#include "Arial12x12.h"
+#include "Arial24x23.h"
+
+SPI_TFTx2_ILI9341 TFT(p5, p6, p7, p8, p9, p10,"TFT"); // mosi, miso, sclk, cs, reset, dc
+
+int main() {
+ TFT.claim(stdout); // send stdout to the TFT display
+ //TFT.claim(stderr); // send stderr to the TFT display
+
+ TFT.background(Black); // set background to black
+ TFT.foreground(White); // set chars to white
+ TFT.cls(); // clear the screen
+ TFT.set_font((unsigned char*) Arial12x12); // select the font
+
+ TFT.set_orientation(1);
+ printf(" Hello Mbed 0");
+ TFT.set_font((unsigned char*) Arial24x23); // select font 2
+ TFT.locate(48,115);
+ TFT.printf("I'm Corentin oups");
+ TFT.fillrect(0,160,320,170,Blue);
+ TFT.fillrect(0,170,320,180,Red);
+ TFT.fillrect(0,180,320,190,White);
+ }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Mar 15 14:56:05 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/87f2f5183dfb \ No newline at end of file