diff --git a/examples/2. Advanced Inkplate Features/5-Inkplate_SD_BMP_pictures/5-Inkplate_SD_BMP_pictures.ino b/examples/2. Advanced Inkplate Features/5-Inkplate_SD_BMP_pictures/5-Inkplate_SD_BMP_pictures.ino index 07108e9..0ffb3e7 100644 --- a/examples/2. Advanced Inkplate Features/5-Inkplate_SD_BMP_pictures/5-Inkplate_SD_BMP_pictures.ino +++ b/examples/2. Advanced Inkplate Features/5-Inkplate_SD_BMP_pictures/5-Inkplate_SD_BMP_pictures.ino @@ -42,9 +42,10 @@ void setup() { //NOTE: Both drawBitmapFromSD methods allow for an optional fourth "invert" parameter. Setting this parameter to true //will flip all colors on the image, making black white and white black. This may be necessary when exporting bitmaps from //certain softwares. - if (!display.drawBitmapFromSD("image1.bmp", 0, 0)) { + if (!display.drawBitmapFromSD("image1.bmp", 0, 0, 1)) { //If is something failed (wrong filename or wrong bitmap format), write error message on the screen. //REMEMBER! You can only use Windows Bitmap file with color depth of 1, 4, 8 or 24 bits with no compression! + //You can turn of dithering for somewhat faster image load by changing the last 1 to 0, or removing the 1 argument completely display.println("Image open error"); display.display(); }