• Ok sorry ;)

    I have a "Original Espruino", it is running version "2v04" "AT command Networking Only"

    and this is the function:

    function visitorScoreUp() {

    g.setColor(0,0,0);
    g.fillRect(220,82,320,135);
    visitorScore++;
    if (visitorScore < 1) visitorScore = 0 ;
    if (visitorScore > 9) visitorTextOffset = 0;
    else visitorTextOffset = 15;
    drawOnBoard({title: visitorScore, posX: 235 + visitorTextOffset, posY: 85, vector: 45, color: colorArray.white});
    

    }

    Every button is calling more or less the same function.

    Regards
    Peter

About

Avatar for PeterD @PeterD started