• Yes, that's a good point! While the 'trigger' is fine as it's an output, the echo signal shouldn't really go into a pin that's marked as 3.3v - and A1 is marked as only taking 3.3v for the Espruino Board.

    However, if you're using the Espruino Pico then it's fine - basically everything there is 5v tolerant.

  • Thanks for the reply.

    I'm using the standard board, rev. 1.4b.

    By the way, for the motors the code reads:

    var MOTORS = [A3,A2,B10,B11]; // pins for the motors
    

    but the board doesn't have such pins. I guess the example is based on an old board.

    L.

About

Avatar for loris @loris started