Most recent activity
-
@Raik, can you please share us the details ( if possible, with the code) ?
Thanks
Navas -
I am able to run the display using arduino using GxEPD2 lib. But I can't get it work with Espruino :(,
this is the code I am using, can some one help me getting the display to work?
var spi; var display; function setupSPI(){ console.log('starting SPI'); spi = new SPI(); spi.setup({ sck:D14, mosi:D13 }); display = require('SSD1606.min').connect({ display: { bpp : 1, displaySizeX : 200, displaySizeY : 200, lutRegisterData : new Uint8Array([0x10, 0x18, 0x18, 0x08, 0x18, 0x18, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x14, 0x44, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]), // PARTIAL update lutRegisterData, covered further maxScreenBytes : 5000, // this ramXStartAddress : 0x00, // this ramXEndAddress : 0x18, // this ramYStartAddress : 0xC7, // this ramYEndAddress : 0x00 // and this }, spi : spi, cs1Pin : D15, dcPin : D0, resetPin : D2, busyPin : D4, // powerPin : B15 }); //display.on(); display.hwReset(function(){ display.init( function(err){ display.g.clear(0xFF); display.g.setRotation(1); display.g.setColor(0x00); display.g.setFontVector(20); display.g.drawString('Hello World!', 22, 22); display.g.flip(); display.refreshScreen(function(err){ display.off(); }); }, { clearScreenColor: 0x00 } ); }); } function start() { setupSPI(); } E.on('init', start);
-
-
-
-
-
- 6 comments
- 4,436 views
-
@furuskog I would recommend you buy preinstalled one. You definitely don't want to go through the troubles which I had.
Thanks
navas
@Raik
Thank you so much, I will give it a try ASAP.