/**
First demo for FT6206 Capactive Touch Screen on Wokwi. Enjoy!
https://wokwi.com/arduino/projects/311598148845830720
*/
/***************************************************
This is our touchscreen painting example for the Adafruit ILI9341
captouch shield
----> http://www.adafruit.com/products/1947
Check out the links above for our tutorials and wiring diagrams
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
MIT license, all text above must be included in any redistribution
****************************************************/
#include <TFT_eSPI.h>
#include <SPI.h> // this is needed for display
#include <Wire.h> // this is needed for FT6206
#include "sample_images.h"
// The display also uses hardware SPI, plus #9 & #10
#define TFT_CS 15
#define TFT_DC 2
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TEXT "aA MWyz~12" // Text that will be printed on screen in any font
#include "Free_Fonts.h" // Include the header file attached to this sketch
#include "SPI.h"
#include "TFT_eSPI.h"
// Use hardware SPI
TFT_eSPI tft = TFT_eSPI();
int i = 0 ;
void setup(void) {
tft.init();
tft.setRotation(1);
tft.fillScreen(TFT_BLACK);
tft.fillRoundRect( 10 , 40 , 100 , 10 , 2 , TFT_BROWN);
tft.fillRoundRect( 12 , 42 , 96 , 6 , 2 , TFT_RED);
tft.fillRoundRect( 12 , 42 , 70 , 6 , 2 , TFT_GREEN);
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 2; j++)
{
tft.fillRoundRect( (10 + ( i * 21 )), ( 60 + ( j * 21 )) , 16 , 16 , 2 , TFT_BROWN);
}
}
}
void loop()
{
}