notro / fbtft

Linux Framebuffer drivers for small TFT LCD display modules. Development has moved to https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing
1.85k stars 496 forks source link

Monochrome (1bpp) Support for ST7565 glcd #492

Closed mayurpatelgec closed 3 years ago

mayurpatelgec commented 6 years ago

Hi @notro,

I am working on ST7565 based monochrome GLCD and i followed your and @zanaster work zanaster/st7565 his fb_st7565 FB driver. All goes well and initializes and shows initialization text. but when i try anything else then all pixels (99%) goes on. I came to know it is developed for 16 bpp and I need 1 bpp. Can you help me in it ?

notro commented 6 years ago

How are you driving it from userspace? Remember that any RGB565 value except pure black (zero) will turn on the pixel: vmem16[(y*8+i)*132+x] ? 1 : 0

Sidenote: This driver does grayscale conversion and dithering: http://elixir.free-electrons.com/linux/latest/source/drivers/staging/fbtft/fb_agm1264k-fl.c But it's better to do this in userspace.

mayurpatelgec commented 6 years ago

hi Thanks for reply..

actually after loading the driver with modprobe i want to use it for QT project but when i start the app with

./Helloworld -qws -Display LinuxFb:/dev/fb0 then display shows all the pixels. i also know that i have to create a project that uses only monochrome colors..

when it's not possible to drive this display with QT then i want to know what are the other possible ways to drive this display from user space...

notro commented 6 years ago

I'm sorry I don't know. I haven't got any experience with graphics libraries. A search for 'qt monochrome' gave me this: https://machinekoder.com/rendering-to-a-monochrome-oled-display-with-qml/

mayurpatelgec commented 6 years ago

thanx. i am already working with it (compatibility issues Qt4 and Qt5 in QML)

can you suggest me any other option to drive this monochrome LCD with this fb driver?

notro commented 6 years ago

As a said, I haven't got any experience with graphics libraries.

mayurpatelgec commented 6 years ago

ok thank you for your support.. it was great help from your side.. i will keep updating if i got any success :)

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.