24 bit image error fix + removed credentials.
This commit is contained in:
parent
95bc91e1da
commit
5bc7b9d96e
|
@ -1512,20 +1512,20 @@ int Inkplate::drawGrayscaleBitmap24Web(WiFiClient *s, struct bitmapHeader bmpHea
|
||||||
|
|
||||||
if (dither) {
|
if (dither) {
|
||||||
bufferPtr = pixelBuffer;
|
bufferPtr = pixelBuffer;
|
||||||
for (i = 0; i < w; i++)
|
for (i = 0; i < w * 3; i++)
|
||||||
pixelBuffer[i] = *(f_pointer++);
|
pixelBuffer[i] = *(f_pointer++);
|
||||||
|
|
||||||
ditherStart(buf, bufferPtr, w, invert, 8);
|
ditherStart(buf, bufferPtr, w, invert, 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (j = 0; j < h; j++)
|
for (j = 0; j < h; j++)
|
||||||
{
|
{
|
||||||
bufferPtr = pixelBuffer;
|
bufferPtr = pixelBuffer;
|
||||||
for (i = 0; i < w; i++)
|
for (i = 0; i < w * 3; i++)
|
||||||
pixelBuffer[i] = *(f_pointer++);
|
pixelBuffer[i] = *(f_pointer++);
|
||||||
|
|
||||||
if (dither && j != h - 1) {
|
if (dither && j != h - 1) {
|
||||||
ditherLoadNextLine(buf, bufferPtr, w, invert, 8);
|
ditherLoadNextLine(buf, bufferPtr, w, invert, 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < w; i++)
|
for (i = 0; i < w; i++)
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
#include "WiFi.h" //Include library for WiFi
|
#include "WiFi.h" //Include library for WiFi
|
||||||
Inkplate display(INKPLATE_1BIT); //Create an object on Inkplate library and also set library into 1 Bit mode (Monochrome)
|
Inkplate display(INKPLATE_1BIT); //Create an object on Inkplate library and also set library into 1 Bit mode (Monochrome)
|
||||||
|
|
||||||
const char* ssid = "e-radionica.com"; //Your WiFi SSID
|
const char* ssid = ""; //Your WiFi SSID
|
||||||
const char* password = "croduino"; //Your WiFi password
|
const char* password = ""; //Your WiFi password
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
display.begin(); //Init Inkplate library (you should call this function ONLY ONCE)
|
display.begin(); //Init Inkplate library (you should call this function ONLY ONCE)
|
||||||
|
|
Loading…
Reference in New Issue