stefangordon / IoTCore-SSD1306-Driver

A Windows IoT Core driver and sample for displaying text and images on SSD1306 based OLED displays using I2C.
MIT License
14 stars 4 forks source link

128x32 Screen Size #1

Open JayEnaR opened 7 years ago

JayEnaR commented 7 years ago

Text is displaying really badly on the 128x32 px version of the I2C OLED display screen (Sample). I've changed:

private const UInt32 SCREEN_HEIGHT_PX = 32;                         
private const UInt32 SCREEN_HEIGHT_PAGES = SCREEN_HEIGHT_PX / 4;

But no difference. Any idea how to change the font display better?

Frankenslag commented 6 years ago

Sorry I don't know how to create a pull request for this but I believe that the problem is because you need to set a value for the multiplex to 0x1F and also you need to so that you only iterate over the first 32 commons and also you need to ensure that the common pins are pins are set up correctly for this board.

    private static readonly byte[] CMD_SETMULTIPLEX = { 0xA8, 0x1F };
    private static readonly byte[] CMD_SETCOMPINS = { 0xDA, 0x02 };

and then in InitDisplay

            DisplaySendCommand(CMD_SETMULTIPLEX);
            DisplaySendCommand(CMD_SETCOMPINS);