/*
Fingerprint - generating a complex graphics pattern with little code.
Try changing line 27 and experimenting with the patterns, e.g.:
tft.drawPixel(x, y, (x + y) * sin(x * y));
https://wokwi.com/arduino/projects/307567963154678338
*/
//#include <Adafruit_ILI9341.h>
//#include <Fonts/FreeSansBold9pt7b.h> // Include the font file you want to use
#include <Adafruit_GFX.h> // Include the Adafruit GFX Library
#include <Adafruit_GC9A01A.h>
#define TFT_CS 10
//#define second 8
#define TFT_DC 7
Adafruit_GC9A01A tft = Adafruit_GC9A01A(TFT_CS, TFT_DC);
#define WIDTH 240
#define HEIGHT 240
//Adafruit_ILI9341 yes = Adafruit_ILI9341(second, TFT_DC);
//#define WIDTH 320
//#define HEIGHT 240
void setup(void) {
tft.begin();
tft.setRotation(0);
tft.fillScreen(GC9A01A_WHITE); // Fill the screen with black color
tft.setTextSize(10); // Set the text size
tft.setTextWrap(false);
//tft.setFont(&FreeSansBold9pt7b);
tft.setCursor(65, 210); // Set the cursor position
tft.setTextColor(GC9A01A_BLACK); // Set the text color to white
tft.print("9"); // Print the number 10 on the display
//yes.begin();
//yes.setRotation(0);
//yes.fillScreen(ILI9341_WHITE); // Fill the screen with black color
//yes.setTextSize(10); // Set the text size
//yes.setTextWrap(false);
//yes.setFont(&FreeSansBold9pt7b);
//yes.setCursor(65, 210); // Set the cursor position
//yes.setTextColor(ILI9341_RED); // Set the text color to white
//yes.print("6"); // Print the number 10 on the display
}
void loop() {
//for (int y = 0; y < HEIGHT; y++) {
//for (int x = 0; x < WIDTH; x++) {
//tft.drawPixel(x, y, x * y);
//}
//}
}