-
Notifications
You must be signed in to change notification settings - Fork 74
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
simulate NXT brick button presses with nxt-python #195
Comments
Hello, You can access internal firmware using io maps, there is an io map for button here: https://git.ni.fr.eu.org/nxt-firmware.git/tree/src/c_button.iom You can try to make sense of the corresponding module to see whether it would be possible to simulate a button press: https://git.ni.fr.eu.org/nxt-firmware.git/tree/src/c_button.c Here is the function used to read the button state for the menus: https://git.ni.fr.eu.org/nxt-firmware.git/tree/src/c_ui.c#n389 So setting PRESSED_STATE in the corresponding State array should work. Have fun! Nicolas. |
Tell me if you need help to make a prototype. |
Hi Nicolas, First I had to figure out the module id for the buttons: Best regards, Andreas |
Nice, waiting for your pull request :) |
Hi,
I am wondering if it is possible to "simulate" NXT brick button presses with nxt-python, i.e. issue a command in Python that acts as if a physical button the the brick has been pressed or causes the NXT brick to register a button press. According to the nxt-python documentation there are several low-level functions available, but I didn't find anything pertaining to the buttons.
I am using nxt-screen.py (because my NXT brick has a non-working screen :-) ), so at least the physical screen (or framebuffer) of a NXT brick can be read; it would be cool if the brick could be remotely controlled with something like nxt-screen.py, but with added button control...
Thanks,
Andreas
The text was updated successfully, but these errors were encountered: