IoTCore-SSD1306-Driver
IoTCore-SSD1306-Driver copied to clipboard
128x32 Screen Size
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?
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);