[SOLVED] rename a pin #553
Replies: 6 comments
-
Posted at 2016-04-21 by @allObjects Who is status defined? ...as global variable? - I'm not aware of STATUS begin reserved or used by definition. Running 1v85 and - fortunately ;-) on a PICO and not a 411 - it just does the right thing... even without declaring STATUS (B2 = LED = LED1 - the red one - on PICO).
The LED behavior - 1 sec on '@' upload - and console output are as expected:
And so is it with some more code which does what you intend to do:
Console output:
Messing up... a 411 thing? The code |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-04-21 by @yerpj I was first thinking about a problem with the compiler (or "code footprint minimizer") integrated within the Espruino Web IDE, but according to your kind experiments this seems to work perfectly on a Pico. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-04-21 by @yerpj Guilty... I explicitely wrote And thank you @allObjects for your help. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-04-21 by @allObjects ...yep, late so... as related to Zollikon/ZH, I wondered what you were up to that late... or early? - n/c needed... ;-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-04-22 by CanyonCasa You might want to review the BIND section at the bottom of the Performance page . |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-04-22 by @yerpj Thanks @CanyonCasa for the link, I didn't know the BIND mechanism! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-04-21 by @yerpj
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 adigitalWrite(STATUS,x)
.I tried doing this:
Beta Was this translation helpful? Give feedback.
All reactions