#include <SPI.h>
#include <Adafruit_GFX.h>
#include<Adafruit_ILI9341.h>
#define pin_CS 10
#define pin_DC 8
#define pin_RST 9
Adafruit_ILI9341 ecran(pin_CS,pin_DC,pin_RST);
void setup() {
// put your setup code here, to run once:
ecran.begin();
ecran.fillScreen(ILI9341_WHITE);
ecran.setRotation(1);
ecran.fillRect(10,100,40,50,ILI9341_PURPLE);
ecran.drawRect(20,20,150,60,ILI9341_GREEN);
ecran.drawCircle(81,70,60,ILI9341_BLACK);
ecran.setTextSize(2);
ecran.setTextColor(ILI9341_BLACK);
ecran.setCursor(50,10);
ecran.print("safouane");
}
void loop() {
// put your main code here, to run repeatedly:
}