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: LCD_fonts SPI_TFT_ILI9341 CMSIS_DSP_401_without_cm4 mbed-src SDFileSystem wavfile
Diff: main.cpp
- Revision:
- 2:afdb1aaa7608
- Parent:
- 1:f1f3dfff9107
- Child:
- 3:7edb43f86069
--- a/main.cpp Tue Nov 17 23:51:55 2015 +0000
+++ b/main.cpp Sat Dec 12 21:13:39 2015 +0000
@@ -59,7 +59,8 @@
float32_t a1, b1;
float32_t subOutput, SquareOutput;
-SPI_TFT_ILI9341 TFT(D11, D12, D13, D10, D8, D9, "TFT"); // mosi, miso, sclk, cs, reset, dc
+//SPI_TFT_ILI9341 TFT(D11, D12, D13, D10, D8, D9, "TFT"); // mosi, miso, sclk, cs, reset, dc
+SPI_TFT_ILI9341 TFT(PC_3, PC_2, PB_10, PB_12, PA_8, PA_11, "TFT"); // mosi, miso, sclk, cs, reset, dc
int main()
{
@@ -68,7 +69,7 @@
int pu, pd, pl, pr, ps;
TFT.claim(stdout); // send stdout to the TFT display
TFT.claim(stderr); // send stderr to the TFT display
- //TFT.set_orientation(1); // comment out = "||" include = "="
+ TFT.set_orientation(2); // comment out = "||" include = "="
TFT.background(Black); // set background to black
TFT.foreground(White); // set chars to white
TFT.cls(); // clear the screen