Re: SSD1306 OLED driver
From: maxime.ripard@free-electrons.com <hidden>
Date: 2014-11-18 15:20:29
Attachments
- signature.asc [application/pgp-signature] 819 bytes
From: maxime.ripard@free-electrons.com <hidden>
Date: 2014-11-18 15:20:29
On Tue, Nov 18, 2014 at 08:29:51PM +0530, Ssagarr Patil wrote:
Hi Maxime,quoted
On Fri, Nov 14, 2014 at 05:09:09PM +0530, Ssagarr Patil wrote:quoted
Hi, I have the SSD1306 oled device connected via spi, will the same driver work ? as the current one is based on i2c what all mods would be required to have it working with SPI ?It won't work out of the box, but it should be fairly easy to support. You need to had support for SPI probing, and then provide some generic accessors the rest of the code can use to wrap around the i2c and spi calls. I'm not sure regmap can be used for this, but this would be something worth looking into to do that.Thanks for the inputs :) Does the driver work as a standard fbdev driver, is there any library on top of it to ease the user space ?
It exposes a monochrome fbdev, so the usual framebuffer tools and libraries are supposed to work quite well, provided they've been written to handle monochrome displays. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com