#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_CS 10
#define TFT_RST 9
#define TFT_DC 8
Adafruit_ILI9341 zaslon = Adafruit_ILI9341(TFT_CS, TFT_RST, TFT_DC);
#define JOY_X A0
#define JOY_Y A1
int x = 120;
int y = 160;
void setup() {
zaslon.begin();
zaslon.setRotation(0);
zaslon.fillScreen(ILI_9341_WHITE);
}
void loop() {
// put your main code here, to run repeatedly:
int x_vrednost = analogRead(JOY_X)
}