having an external button control the media player. #1127
Unanswered
espruino-discuss2
asked this question in
The Place for Patreon Patrons
Replies: 4 comments
|
Posted at 2022-11-30 by @gfwilliams Hi! Since you're using a Puck, the pin names are a bit different (starting with I'd say just connect a button between maybe pin Then it's just: |
0 replies
|
Posted at 2022-12-01 by Gene Wow Gordon, thank you so much! I bought you a coffee with the donate button. Much appreciated. |
0 replies
|
Posted at 2022-12-02 by @gfwilliams Thank you! Did it work ok? |
0 replies
|
Posted at 2023-03-03 by Gene Perfectly! Thank you so much!!! 🙏 |
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 2022-11-29 by Gene
Hello Gordon,
I have successfully set up the puck.js to control Music player via BLE as your cool project available at
https://www.espruino.com/BLE+Music+Control
I would like to now do the same thing with an external button attached to the puck.
In another forum post, you said this was possible using the methods here:
http://www.espruino.com/Button
I see that I can connect the external switch between to io buttons (e.g. A6 and B1) and that I dont need to use an external resistor for this.
I am unsure of the code to use. Do I just paste your two sets of code together (as I have done below - is it correct)? Or do I need to change some of the BTN lines?
Thanks very much for your help...
Gene
All reactions