PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
824B

  1. /*
  2. Simple test of BTE block move
  3. */
  4. #include <SPI.h>
  5. #include <RA8875.h>
  6. #define RA8875_CS 4 //see below...
  7. #define RA8875_RESET 3//any pin or 255 to disable it!
  8. RA8875 tft = RA8875(RA8875_CS,RA8875_RESET);//arduino's
  9. void setup()
  10. {
  11. Serial.begin(38400);
  12. tft.begin(RA8875_800x480);
  13. //fill a gradient, so we can test BTEing stuff around the screen
  14. for(int i=0;i<tft.height();i++) tft.drawLine(0,i,tft.width()-1,i,tft.Color565(map(i,0,tft.height(),128,40), map(i,0,tft.height(),255,40), map(i,0,tft.height(),40,128)));
  15. tft.setTextColor(RA8875_PINK,RA8875_BLUE);
  16. tft.setCursor(30,30);
  17. tft.print("HELLO WORLD!");
  18. //The transparent-move option uses the foreground colour as the transparent colour.
  19. tft.setTextColor(RA8875_BLUE);
  20. tft.BTE_move(20,20,30,30,200,200,0,0,true);
  21. }
  22. void loop()
  23. {
  24. }