kalibre

grifControles

Mar 23rd, 2024
895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Arduino 0.52 KB | Software | 0 0
  1. //bem10jfx.blogspot.com.br
  2. // Inicializando o objeto do display TFT
  3. Adafruit_ST7735 tft = Adafruit_ST7735(10,  9, 8);
  4. void setup() {  
  5.   tft.initR(INITR_BLACKTAB); // Initializaçao....
  6.   //display
  7.   tft.fillScreen(ST7735_WHITE);
  8. }
  9. void loop() {
  10.                  x0 ,y0 ,x1, y1, x2, y2
  11. tft.fillTriangle(10, 10, 60, 10, 35, 50, ST7735_RED);
  12. //                 //x//y//R  //color
  13. tft.fillCircle(50, 125, 25, ST7735_GREEN);
  14. //         //x1 //x2//W=40//H=40
  15. tft.fillRect(70, 40, 40, 40, ST7735_BLUE);
  16.  delay(500);
  17.  }
Tags: Arduino
Advertisement
Add Comment
Please, Sign In to add comment