-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support buttons #53
Comments
Added an example here |
Should this example script work or is it still a draft? I can't get it working with my rock candy joypad. I connected the controller directly to the raspi and to safari. Unfortunately no success. |
Yes, it should work for you, I tested with the same. Do you get an error? Did you also update picraftzero library from GitHub? |
I don't have to edit the example file (button definitions), do I? |
You don't have to edit the example, it should work as-is, but only when the USB dongle is plugged into the Pi. I should clarify that it wont send button presses via the web client, yet. (When I tested on Mac I was running the I've pushed an update that has a bit more debug: sudo pip3 uninstall picraftzero
sudo pip3 install git+https://github.com/WayneKeenan/picraftzero Please enable debug :
Add:
Please re-run this on a Pi with the RockCandy dongle attached to the Pi and post the log output, thanks. Hopefully you will see something such as:
|
I have noticed a bug where the very first button press doesn't call the |
Got this working now when attaching the rock candy transceiver directly to the raspberry pi. |
great, thanks for confirming. |
Support Joypad buttons.
Add buttons to the web UI
Probably using the same API as gpio zero but instead of pins use logical id. Also, use text or constant logical id's, e.g 'BTN_X' or BTN_X instead of numeric ones used for joysticks
The text was updated successfully, but these errors were encountered: