This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Modules.addCached("DSD6OLED",function(){ | |
//modified SSD1306, 128x32 but needs 0xda,0x12 | |
// commands sent when initialising the display | |
var initCmds = new Uint8Array([ | |
0xAe, // 0 disp off | |
0xD5, // 1 clk div | |
0x80, // 2 suggested ratio | |
0xA8, 31, // 3 set multiplex, height-1 | |
0xD3,0x0, // 5 display offset | |
0x40, // 7 start line |