You are reading a single comment by @Chris and its replies. Click here to read the full conversation.
  • In case there are others who (like me) got stumped by this these settings worked for me by referencing the arduino code @Gordon refers to above (thanks Gordon!)

    var initCmds = new Uint8Array([ 0xAe, // disp off
                 0xD5, // clk div
                 0x80, // suggested ratio
                 0xA8, 0x1F, // set multiplex: 0x1F for 128x32, 0x3F for 128x64
                 0xD3,0x0, // display offset
                 0x40, // start line
                 0x8D,extVcc?0x10:0x14, // charge pump
                 0x20,0x0, // memory mode
                 0xA1, // seg remap 1 
                 0xC8, // comscandec
                 0xDA,0x02, // set compins - use 0x12 for 128x64
                 0x81,extVcc?0x9F:0xCF, // set contrast
                 0xD9,extVcc?0x22:0xF1, // set precharge
                 0xDb,0x40, // set vcom detect
                 0xA4, // display all on
                 0xA6, // display normal (non-inverted)
                 0xAf // disp on

Avatar for Chris @Chris started