24 bit image error fix + removed credentials.

This commit is contained in:
nitko12 2020-08-10 09:31:18 +02:00
parent 95bc91e1da
commit 5bc7b9d96e
2 changed files with 6 additions and 6 deletions

View File

@ -1512,20 +1512,20 @@ int Inkplate::drawGrayscaleBitmap24Web(WiFiClient *s, struct bitmapHeader bmpHea
if (dither) {
bufferPtr = pixelBuffer;
for (i = 0; i < w; i++)
for (i = 0; i < w * 3; i++)
pixelBuffer[i] = *(f_pointer++);
ditherStart(buf, bufferPtr, w, invert, 8);
ditherStart(buf, bufferPtr, w, invert, 24);
}
for (j = 0; j < h; j++)
{
bufferPtr = pixelBuffer;
for (i = 0; i < w; i++)
for (i = 0; i < w * 3; i++)
pixelBuffer[i] = *(f_pointer++);
if (dither && j != h - 1) {
ditherLoadNextLine(buf, bufferPtr, w, invert, 8);
ditherLoadNextLine(buf, bufferPtr, w, invert, 24);
}
for (i = 0; i < w; i++)

View File

@ -21,8 +21,8 @@
#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)
const char* ssid = "e-radionica.com"; //Your WiFi SSID
const char* password = "croduino"; //Your WiFi password
const char* ssid = ""; //Your WiFi SSID
const char* password = ""; //Your WiFi password
void setup() {
display.begin(); //Init Inkplate library (you should call this function ONLY ONCE)