diff --git a/examples/Advanced/Snake b/examples/Advanced/Snake new file mode 160000 index 0000000..46ae331 --- /dev/null +++ b/examples/Advanced/Snake @@ -0,0 +1 @@ +Subproject commit 46ae3319ef22a000b139067a055bb7e394ae0402 diff --git a/examples/Advanced/TFCardBmpDraw/TFCardBmpDraw.ino b/examples/Advanced/TFCardBmpDraw/TFCardBmpDraw.ino new file mode 100644 index 0000000..9233ba2 --- /dev/null +++ b/examples/Advanced/TFCardBmpDraw/TFCardBmpDraw.ino @@ -0,0 +1,19 @@ +#include + +void setup(void) { + + M5.begin(); + M5.Lcd.fillScreen(BLACK); + + Serial.print("Initializing SD card..."); + if (!SD.begin(TFCARD_CS_PIN)) { + Serial.println("failed!"); + } + Serial.println("OK!"); + + M5.Lcd.bmpDraw("/bmp1.bmp", 0, 0); +} + +void loop() { + +} diff --git a/examples/Basics/Hello/Hello.ino b/examples/Basics/Hello/Hello.ino index 9c313d8..6ed45d6 100644 --- a/examples/Basics/Hello/Hello.ino +++ b/examples/Basics/Hello/Hello.ino @@ -1,5 +1,5 @@ #include - + // the setup routine runs once when M5Stack starts up void setup(){