Simple Counter ILI9341


STM32 ~ Simple Counter ILI9341




#include <Adafruit_GFX_AS.h>
#include <Adafruit_ILI9341_STM.h>
#include <SPI.h>

Adafruit_ILI9341_STM tft = Adafruit_ILI9341_STM(PA0, PA2, PA1);  // (CS, DC, RST)

unsigned int counter;

void setup(void){
    tft.begin();
    tft.fillScreen(ILI9341_BLACK);
   
    tft.setCursor(55,310);
    tft.setTextColor(ILI9341_WHITE, ILI9341_BLACK);
    tft.print("veliutas.blogspot.com"); 
  
    tft.setTextSize(3);
    tft.setCursor(10,10);
    tft.setTextColor(ILI9341_CYAN, ILI9341_BLACK);
    tft.print("SAYICI:"); 
}

void loop(){
      tft.setCursor(140,10);
      tft.setTextColor(ILI9341_YELLOW, ILI9341_BLACK);
      tft.print(counter);
      counter++;
}

1 yorum:

  1. Hi my friend,

    It's a very good project also can you send me the code please ?
    I subscrive in your youtube's channel.

    gsoupa@gmail.com

    YanıtlaSil