Uncaught Error: Invalid pin!

Posted on
  •  ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v08.80 (c) 2019 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 512KB:256/256, manuf 0xc8 chip 0x4013
    >di
    digitalPulse        digitalRead
    digitalWrite
    >digitalWrite(D13,1)
    =undefined
    >digitalPulse(D13,1,10)
    =undefined
    Uncaught Error: Invalid pin!
    
    

    Occurs only with digitalPulse ()

  • What happens if you type just D13 or trace(D13)? D13 itself would seem to be no different to anything else. Is it a problem with other pins too?

  • I downloaded ver .: 2v08.189 and everything seems as planned.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Uncaught Error: Invalid pin!

Posted by Avatar for Frida @Frida

Actions