You are reading a single comment by @Jean-Philippe_Rey and its replies. Click here to read the full conversation.
  • Hi!

    Is there a way to rename a pin? Let's say that a LED is mapped on C0, and is representing some kind of status of the device. I would like to do a digitalWrite(STATUS,x).
    I tried doing this:

    digitalWrite(STATUS,1);```
    
    This seems to work perfectly. But then I add a variable:
    
    

    STATUS=C0;
    var myVar=32;
    digitalWrite(STATUS,1);`` With this last example, when uploading the script to the Espruino (in my case this is right now the Nucleo-411 because each of my Espruinos are already in use) , it appears thatmyVarequalsC0` !

    I suspect the STATUS=C0 to be misunderstood by myself, right?

About