LED1/2 and BTN on RuuviTag inverted #7180
Replies: 1 comment
-
Posted at 2017-03-30 by @gfwilliams No problem - actually Ruuvi were really good, and have paid me to port Espruino over and to keep producing binaries for them (1v92 will be in the Espruino binary zip file) Unfortunately it's a tricky one - the LEDs and Buttons on Ruuvitag really are upside-down. I'm afraid there's no obvious fix, since in Espruino LED1 refers to the actual pin on the chip - so if you write 1 to it, it outputs 1. Changing that would require some pretty far-reaching modifications. I'd have to add code to optionally invert specific pins, which would probably end up being really confusing if you tried to access the pin directly, and would definitely slow things down. I think for now that's just something you'll have to live with. Posted at 2017-03-31 by AntiCat Thank you for your explanation. Posted at 2017-04-01 by oesterle Good thing that things like the … where But those don't solve the problem of running existing Espruino JS apps on RuuviTag. Maybe the IDE could spot things like
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-03-30 by AntiCat
Thanks for porting Espruino to the RuuviTag! I was looking forward to doing it myself but this works for me to :-).
However, it looks like the LEDs and BTN are low-active:
Not a big issue, can it be fixed?
Beta Was this translation helpful? Give feedback.
All reactions