Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //bem10jfx.blogspot.com.br
- // Inicializando o objeto do display TFT
- Adafruit_ST7735 tft = Adafruit_ST7735(10, 9, 8);
- void setup() {
- tft.initR(INITR_BLACKTAB); // Initializaçao....
- //display
- tft.fillScreen(ST7735_WHITE);
- }
- void loop() {
- x0 ,y0 ,x1, y1, x2, y2
- tft.fillTriangle(10, 10, 60, 10, 35, 50, ST7735_RED);
- // //x//y//R //color
- tft.fillCircle(50, 125, 25, ST7735_GREEN);
- // //x1 //x2//W=40//H=40
- tft.fillRect(70, 40, 40, 40, ST7735_BLUE);
- delay(500);
- }
Advertisement
Add Comment
Please, Sign In to add comment