You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi! When you get this working it'd be great to turn it into a module for Espruino!

    So I think it'd be really helpful to know when the screen turns blank. Maybe you could run the commands one after the other - is it after connect, on, or flip?

    It all looks quite good, but only thing right now is I'm wondering if:

    flipCmds.forEach(function(d) {i2c.writeTo(addr, [0,d]);});
    

    should actually be:

    i2c.writeTo(addr, [0].concat(flipCmds));
    

    So instead of writing 0,data1,0,data2,... you do 0,data1,data2,...

  • Thanks for the quick reply!
    That actually seemed to be thé problem! I still had to adjust line 37 to 0, 127 to fix the height
    of the display which also fixed the screen turning off.

    I'm only now getting sometimes issues with my board kinda randomly resetting or giving seemingly random errors when trying to upload the code. Perhaps I've already used up all the RAM or something?

    Hi! When you get this working it'd be great to turn it into a module for Espruino!

    Yes, I plan to (at least with i2c support) once I'm sure it's working fine.

About

Avatar for Gordon @Gordon started