You are reading a single comment by @AkosLukacs and its replies. Click here to read the full conversation.
  • And after playing with the badge extensively, it doesn't execute the code official badge.js code any more. Although some variables are set, see left-hand window log below.
    The code is at:
    https://github.com/dbovey/espruino/blob/­master/Badge_simple.js
    It is just the badge.js code with minor modifications.
    Running onInit()...
    Uncaught SyntaxError: Got ?[255] expected EOF
    at line 1 col 4808
    ...?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255]...

                                                                                                                                                                                                                                                                                                                                                                                                     ^
    

    at line 1 col 1
    ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255] ?[255]...

                                                                                                                                                                                                                                                                                                                                                                       ^
    

    in function called from system

    NAME
    =[
    "Hello",
    "World"
    ]
    cityscape
    ={ width: 128, height: 16, bpp: 1,
    buffer: new Uint8Array([0, 0, 0, 0, 0, ... 255, 255, 255, 255, 255]).buffer
    }

  • Just to clarify, you have this badge, right?

    First thing to try would be to reset(1) to remove everything from flash, possibly you had too much in memory, or remains of a previous experiment mess up something. And do some basic sanity check - do the basics work?

    Or try the Returning to Standard instructions on the docs page.

  • Sorry @AkosLukacs for my incomplete post :-(
    > Just to clarify, you have this badge, right?
    @AkosLukacs Yes the pixl multicoloUr from the espruino shop

    > First thing to try would be to reset(1) to remove everything from flash, possibly you had too much in memory, or remains of a previous experiment mess up something.
    reset(1) says it erases the flash, but does not solve
    > And do some basic sanity check - do the basics work?
    entering this on left hand side and to the RH side as a JS file:
    var l;setInterval("digitalWrite(LED1,l=!l);"­,200);
    blinks the LED

    > Or try the Returning to Standard instructions on the docs page.
    I reflashed the espruino v2.04 code anew and then erased the flash using the BTN1 manipulation. (maybe should I have done that in reverse?)
    Did not solve.
    Thanks for your help!

About

Avatar for AkosLukacs @AkosLukacs started