Jump to content

Custom driver


newegor

Recommended Posts

Hi,

I have a display which is connected to MCU using SPI interface. This display uses 1 bit per pixel format. Due to display uses fluorescent technology I need to update it always. As I see frame buffer driver can't support 1 bit per pixel format.

What is the simple way to implement this driver? May be I can take frame buffer driver and add a conversion from gray scale(8 bit per pixel) to 1 bit per pixel. Or I need to write my own driver.

Could you suggest something to me?

Thank you.

Link to comment
Share on other sites

The framebuffer driver is not the best one to model it from.

Monochrome drivers don't fit into the framebuffer model because there is more than one pixel packed into a byte. To add that capability to the framebuffer would needlessly complicate the code.

Instead try using the PCD8544 driver as a base.

It also is a monochrome driver running over SPI.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...