• Thanks @Gordon.

    I just picked up on this, compiled+compiled a new firmware.
    And it works - but not just as expected.

    Using a 90°CCW rotated flash image (see code) below.
    Showing the image with g.drawImage() seems okay.

    Maybe I am doing something wrong here, but two things happen after flashing:

    1. after storing the flash and power-cycling the left lines (or lower lines if not rotated) of the image are blank - maybe this is something about the terminal you mentioned
    2. doing a manual reset() after installing also gives an error message:

      >reset()
      =undefined
      ____                 _
      |  __|___ ___ ___ _ _|_|___ ___
      |  __|_ -| . |  _| | | |   | . |
      |____|___|  _|_| |___|_|_|_|___|
           |_| espruino.com
      2v04.228 (c) 2019 G.Williams
      Uncaught Error: Expecting first argument to a valid Image
      

    This is my complete code, including the 90°CCW rotated image:

    var buf = E.toArrayBuffer(atob("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+AAAAAAAAAAAAAAAAAAAD/wAAAAAAAAAAAAAAAAAAB/+AAAAAAAAAAAAAAAAAAA//wAAAAAAAAAAAAAAPgAAf/8AAAAAAAAAAA////4AAP//gAAAAAAAAAAP///+AAD//4AAAAAAAAAAD////gAB//+AAAAAAAAAAA////4AAf//wAAAAAAAAAAP///+AAP//8AAAAAAAAAAD/gAAAAD///AAAAAAAAAAA/8AAAAA///wAAAAAAAAAAD/wAAAAf//8AAAAAAAAAAAP/AAAAH///AAAAAAAAAAAB/8AAAB///wAAAAAAAAAAAH/wAAAf//8AAAAAAAAAAAAf/AAAP///AAAAAAAAAAAAB/4AAD///wAAAAAAAAAAAAH/wAA///8AMAAAAAAAAAAAf+AAP///AHwAAAAAAAAAAB/4AD///wB8AAAAAAAAAAB/+AB///8AfAAPgAAAAAAD//gAf///AHwAB+AAAAAA///4AH///wB8AAPgAAAAB///wAB///8AfAAD8AAAAD//+AAAf///AHwAAfAAAAA//4AAAH///gB8AAHwAAAAP/AAAAD///4AfAAB8AAAAD/gAAAA//4DAHwAAfgAAAA//AAAAP/4AYB8AAH4AAAAP/+AAAD/+ADAfgAB+AAAAD//8AAA//AAYH4AAfgAAAAH//4AAP/wAGB/AAH4AAAAAP//wAD/4ABgPwAB+AAAAAAf//gA//AAYD+AA/AAAAAAA//4AP/wAGAf4AfwAAAAAAB/+AB/+ADAH/AP8AAAAAAAD/gAP/wBgA///+AAAAAAAAH4AD//BwAH///AAAAAMAAAOAAf//gAA///wAAAADwAAAAAP//4AAH//4AAAAA/AAAAAC//8AAAf/4AAAAAP+AAAAAv//AAAB/4AAAAAD/4AAAAT//wAAAAAAAAAAA//gAAAE//4AAAAAAAAAAAD/+AAABP/+AAAAAAAAAAAAH/4AAAj//gAAAAAAAAAAAAf/gAAJ//wAAAAAAAAAAAAB/+AAOf/8AAAAAAAAAAAAAH/4AFv//AAAAAAAAAAAAAAP/wGf//wAAAAAAAAAAAAAA/+BP//8AAAAAAAAAAAAAB//gf///gAAAAAAAAAAAB///4H///sAAAAAAAAAAAP///+A///xAAAAAAAAAAAD///4AH//8QAAAAAAAAAAA///AAAf/+MAAAAAAAAAAAP/4AAAA//mAAAAAAAAAAAD/AAAAAH/zAAAAAAAAAAAA4AAAAAB//AAAAAAAAAAAAAAAAAAAP/AAAAAAAAAAAAAAAAAAAA/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="));
    
    // just a test to show that the image works
    g.clear();
    g.drawImage({width:128, height:64, bpp:1, buffer: buf});
    g.flip();
    
    // write to flash
    require("Storage").write(".splash", buf);
    
    E.setBootCode('delete global["\xff"].gfx');
    
    function onInit() {
      Bluetooth.setConsole( true );
    }
    
About

Avatar for ChristianW @ChristianW started