/*
Simple "Hello World" for ILI9341 LCD
https://wokwi.com/arduino/projects/308024602434470466
*/
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_DC 9
#define TFT_CS 10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {
tft.begin();
tft.setRotation(1);
tft.setCursor(0,0);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Body Temp");
tft.setCursor(0,60);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Heart Rate");
tft.setCursor(0,120);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Steps");
tft.setCursor(0,180);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Drink");
tft.setCursor(10,240);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(3);
// Meme reference: https://english.stackexchange.com/questions/20356/origin-of-i-can-haz
}
void loop() {
for(int i=0;i<10;i++)
{
tft.setCursor(10,30);
tft.println("36");
tft.setCursor(55,30);
tft.println("C");
delay (1000);
tft.setCursor(10,90);
tft.println("70");
tft.setCursor(55,90);
tft.println("BPM");
delay (1000);
tft.setCursor(10,150);
tft.println("1200");
tft.setCursor(85,150);
tft.println("Steps");
delay (1000);
tft.setCursor(10,210);
tft.println("03");
tft.setCursor(55,210);
tft.println("LTR");
delay (1000);
}
}