removed libraryies and made delay longer

This commit is contained in:
Sam
2024-03-07 19:55:02 +01:00
parent 3b375266ee
commit 56abd5cbde

View File

@@ -1,8 +1,5 @@
#include <SPI.h>
#include "Adafruit_GFX.h"
#include "Adafruit_ST7796S_kbv.h"
#include "headerFile.h"
#include "displayText.h"
int i = 0;
char* Question[] = {
@@ -29,7 +26,6 @@ DisplayText displayText(tft);
void setup() {
tft.begin(); // Initialize the display
tft.setRotation(3); // Set the rotation to horizontal
tft.fillScreen(ST7796S_BLACK);
}
void loop() {
@@ -43,7 +39,7 @@ void loop() {
// writeText(Answer[0], 2, 50, 300, 4000);
displayText.writeText(Question[i], 3, 0, 0, 0, true, false);
displayText.writeText(Answer[i], 3, 0, 200, 0, true, true);
delay(10000);
delay(20000);
}