123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #include "xbm.h"
- #include <M5Stack.h>
- void setup() {
- M5.begin();
- M5.Power.begin();
- M5.Lcd.fillScreen(TFT_BLACK);
- }
- void loop() {
-
-
-
- int x = random(M5.Lcd.width() - logoWidth);
- int y = random(M5.Lcd.height() - logoHeight);
-
-
-
- M5.Lcd.drawXBitmap(x, y, logo, logoWidth, logoHeight, TFT_WHITE);
- delay(500);
-
- M5.Lcd.drawXBitmap(x, y, logo, logoWidth, logoHeight, TFT_BLACK);
-
-
-
- x = random(M5.Lcd.width() - logoWidth);
- y = random(M5.Lcd.height() - logoHeight);
-
-
-
- M5.Lcd.drawXBitmap(x, y, logo, logoWidth, logoHeight, TFT_WHITE, TFT_RED);
- delay(500);
-
- M5.Lcd.drawXBitmap(x, y, logo, logoWidth, logoHeight, TFT_BLACK, TFT_BLACK);
- }
|