Further add 4 and 8 bit descriptions.
This commit is contained in:
parent
893be4368e
commit
6411d549ab
|
@ -51,7 +51,7 @@ void setup() {
|
||||||
//Photo taken by: Roberto Fernandez
|
//Photo taken by: Roberto Fernandez
|
||||||
if(!display.drawBitmapFromWeb("https://varipass.org/neowise_mono.bmp", 0, 0, true)) {
|
if(!display.drawBitmapFromWeb("https://varipass.org/neowise_mono.bmp", 0, 0, true)) {
|
||||||
//If is something failed (wrong filename or wrong bitmap format), write error message on the screen.
|
//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 or 24 bits with no compression!
|
//REMEMBER! You can only use Windows Bitmap file with color depth of 1, 4, 8 or 24 bits with no compression!
|
||||||
display.println("Image open error");
|
display.println("Image open error");
|
||||||
display.display();
|
display.display();
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ void setup() {
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
if(!display.drawBitmapFromWeb(http.getStreamPtr(), 0, 0, len)) {
|
if(!display.drawBitmapFromWeb(http.getStreamPtr(), 0, 0, len)) {
|
||||||
//If is something failed (wrong filename or wrong bitmap format), write error message on the screen.
|
//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 or 24 bits with no compression!
|
//REMEMBER! You can only use Windows Bitmap file with color depth of 1, 4, 8 or 24 bits with no compression!
|
||||||
display.println("Image open error");
|
display.println("Image open error");
|
||||||
display.display();
|
display.display();
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ void setup() {
|
||||||
//certain softwares.
|
//certain softwares.
|
||||||
if(!display.drawBitmapFromSD("image1.bmp", 0, 0)) {
|
if(!display.drawBitmapFromSD("image1.bmp", 0, 0)) {
|
||||||
//If is something failed (wrong filename or wrong bitmap format), write error message on the screen.
|
//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 or 24 bits with no compression!
|
//REMEMBER! You can only use Windows Bitmap file with color depth of 1, 4, 8 or 24 bits with no compression!
|
||||||
display.println("Image open error");
|
display.println("Image open error");
|
||||||
display.display();
|
display.display();
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,8 +60,6 @@ void setup() {
|
||||||
// eink - Should be set to true to generate a monochrome 1 bit bitmap better suitable for Inkplate.
|
// eink - Should be set to true to generate a monochrome 1 bit bitmap better suitable for Inkplate.
|
||||||
// For more detailed explanation and more parameters, please visit the docs page: https://varipass.org/docs/
|
// For more detailed explanation and more parameters, please visit the docs page: https://varipass.org/docs/
|
||||||
if(!display.drawBitmapFromWeb("https://api.varipass.org/?action=sgraph&id=kbg3eQfA&width=400&height=300&eink=true", 200, 150)) {
|
if(!display.drawBitmapFromWeb("https://api.varipass.org/?action=sgraph&id=kbg3eQfA&width=400&height=300&eink=true", 200, 150)) {
|
||||||
//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 or 24 bits with no compression!
|
|
||||||
display.println("Image open error");
|
display.println("Image open error");
|
||||||
display.partialUpdate();
|
display.partialUpdate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue