• 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("AAAAAAAAAAAAAAAAAA­AAAAAAAAAAAAAD+AAAAAAAAAAAAAAAAAAAD/wAAA­AAAAAAAAAAAAAAAB/+AAAAAAAAAAAAAAAAAAA//w­AAAAAAAAAAAAAAPgAAf/8AAAAAAAAAAA////4AAP­//gAAAAAAAAAAP///+AAD//4AAAAAAAAAAD////g­AB//+AAAAAAAAAAA////4AAf//wAAAAAAAAAAP//­/+AAP//8AAAAAAAAAAD/gAAAAD///AAAAAAAAAAA­/8AAAAA///wAAAAAAAAAAD/wAAAAf//8AAAAAAAA­AAAP/AAAAH///AAAAAAAAAAAB/8AAAB///wAAAAA­AAAAAAH/wAAAf//8AAAAAAAAAAAAf/AAAP///AAA­AAAAAAAAAB/4AAD///wAAAAAAAAAAAAH/wAA///8­AMAAAAAAAAAAAf+AAP///AHwAAAAAAAAAAB/4AD/­//wB8AAAAAAAAAAB/+AB///8AfAAPgAAAAAAD//g­Af///AHwAB+AAAAAA///4AH///wB8AAPgAAAAB//­/wAB///8AfAAD8AAAAD//+AAAf///AHwAAfAAAAA­//4AAAH///gB8AAHwAAAAP/AAAAD///4AfAAB8AA­AAD/gAAAA//4DAHwAAfgAAAA//AAAAP/4AYB8AAH­4AAAAP/+AAAD/+ADAfgAB+AAAAD//8AAA//AAYH4­AAfgAAAAH//4AAP/wAGB/AAH4AAAAAP//wAD/4AB­gPwAB+AAAAAAf//gA//AAYD+AA/AAAAAAA//4AP/­wAGAf4AfwAAAAAAB/+AB/+ADAH/AP8AAAAAAAD/g­AP/wBgA///+AAAAAAAAH4AD//BwAH///AAAAAMAA­AOAAf//gAA///wAAAADwAAAAAP//4AAH//4AAAAA­/AAAAAC//8AAAf/4AAAAAP+AAAAAv//AAAB/4AAA­AAD/4AAAAT//wAAAAAAAAAAA//gAAAE//4AAAAAA­AAAAAD/+AAABP/+AAAAAAAAAAAAH/4AAAj//gAAA­AAAAAAAAAf/gAAJ//wAAAAAAAAAAAAB/+AAOf/8A­AAAAAAAAAAAAH/4AFv//AAAAAAAAAAAAAAP/wGf/­/wAAAAAAAAAAAAAA/+BP//8AAAAAAAAAAAAAB//g­f///gAAAAAAAAAAAB///4H///sAAAAAAAAAAAP//­/+A///xAAAAAAAAAAAD///4AH//8QAAAAAAAAAAA­///AAAf/+MAAAAAAAAAAAP/4AAAA//mAAAAAAAAA­AAD/AAAAAH/zAAAAAAAAAAAA4AAAAAB//AAAAAAA­AAAAAAAAAAAAP/AAAAAAAAAAAAAAAAAAAA/gAAAA­AAAAAAAAAAAAAAAAAAAAAAAAAAAA=="));
    
    // 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