Devices defines #6721
Unanswered
espruino-discuss
asked this question in
Porting to new Devices
Devices defines
#6721
Replies: 1 comment
-
Posted at 2016-08-17 by @gfwilliams As far as I remember there are only 4 buttons built-in - but it'd be easy enough to add more. Just do a text search over all the files for Posted at 2016-08-18 by TomasJ Heureka, I did not know that it can be somewhere in jspin.c. Thank you very much :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-08-17 by TomasJ
Hello,
I'm building Espruino on custom board (based on STM32F4) which have five buttons and I would like to add the definition of the fifth button to binary. I added definitions of buttons to STM32F4DISCOVERY.py file and also I added BTN5 to simpleDevices array in build_platform_config.py but when I flash the board and try to call BTN5 I get Uncaught ReferenceError: "BTN5" is not defined. Do I need to define this button somewhere else or it's not possible to define more buttons or other devices? I found note about this mentioning that I can you LED1-LED8, BTN1-BTN4, etc., but I need one more button for convenience. Thanks for any advice
Beta Was this translation helpful? Give feedback.
All reactions