Display Template for STM32F429 discovery added

This commit is contained in:
ChrisMicro 2017-09-16 07:56:53 +02:00 committed by Daniel Fekete
parent ff582b0a0f
commit 6fd11fd5f9
1 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,45 @@
/************************************************************************
STM32F429 Discovery TFT example template
Required libraries: GFX, Adafruit
Installation Instructions:
1. Import the Adadruit library in the menue
Sketch=>Include Libraries=>Manage Libraries => Adafruit ILI9341
2. Import the Adadruit GFX-Library
Sketch=>Include Libraries=>Manage Libraries => Adafruit GFX Library
Sept. 2017, ChrisMicro
************************************************************************/
#include "LTDC_F429_Discovery.h"
LTDC_F429_Discovery tft;
void setup()
{
tft.begin();
tft.fillScreen(LTDC_BLACK);
//tft.setRotation(1);
tft.setCursor(0, 0);
tft.setTextColor(LTDC_GREEN); tft.setTextSize(3);
tft.println("STM32F429 Discovery");
tft.setTextColor(LTDC_YELLOW); tft.setTextSize(2);
}
int Counter=0;
void loop(void)
{
tft.print( Counter ); tft.print(" ");
Counter ++;
delay(1000);
}