Hi friends! I am able to run prepared code from this web page: https://lastminuteengineers.com/nokia-5110-lcd-arduino-tutorial/ it works as expected (Marilyn Monroe seems as expected, as an logo).I am able to run pcdtest.ino example code also.But when I use my own image with some processes, it does not work as expected. Some meaningless dots appeared as scattered on pixels.It does not make sense.
I want to take a photo to use as an logo on my Nokia 5110 LCD.The LCD has 84*48 pixel resolution.Firstly, I took a photo.Resize it with Paint (width=84, height=48), and save it as monochrome bmp image.Then I save it as jpeg again to make it black and white(not grayscale). My PC has windows os. I tried image2cpp, LCDAsisstant, Rinky-Dink Electronics but only Convert picture to C code array works on my LCD (it works sometimes - image background color affects the result logo ).
I have trouble with this and dont understand the reason why these steps are not useful in my case.Can you help me with this?
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
// Declare LCD object for software SPI
// Adafruit_PCD8544(CLK,DIN,D/C,CE,RST);
Adafruit_PCD8544 display = Adafruit_PCD8544(7, 6, 5, 4, 3);
const byte einstein[] PROGMEM = {
//This part is filled with bitmap .c file result
};
void setup() {
Serial.begin(9600);
display.begin();
display.clearDisplay();
display.drawBitmap(0, 0, einstein, 84,48, BLACK);
display.display();
}
void loop() {}