ZinggJM 8 年 前
親
コミット
873b76ae3a
1 ファイル変更、6 行追加、4 行削除
  1. 6 4
      examples/GxEPD2_SD_Example/GxEPD2_SD_Example.ino

+ 6 - 4
examples/GxEPD2_SD_Example/GxEPD2_SD_Example.ino

@@ -166,6 +166,8 @@ void setup()
   delay(5000);
   delay(5000);
   drawBitmapFromSD("betty_1.bmp", 0, 0);
   drawBitmapFromSD("betty_1.bmp", 0, 0);
   delay(5000);
   delay(5000);
+  //drawBitmapFromSD("logo.bmp", 0, 0);
+  //delay(5000);
 }
 }
 
 
 void loop(void)
 void loop(void)
@@ -300,15 +302,15 @@ void drawBitmapFromSD(const char *filename, uint8_t x, uint8_t y)
   }
   }
   file.close();
   file.close();
   if (valid)
   if (valid)
-  {
-    Serial.println("bitmap format not handled.");
-  }
-  else
   {
   {
     Serial.print("loaded in ");
     Serial.print("loaded in ");
     Serial.print(millis() - startTime);
     Serial.print(millis() - startTime);
     Serial.println(" ms");
     Serial.println(" ms");
   }
   }
+  else
+  {
+    Serial.println("bitmap format not handled.");
+  }
 }
 }
 
 
 uint16_t read16(File f)
 uint16_t read16(File f)