If I not use the "release-command", it will run endless, also if I release the key. I simply need a fuction where the "enter-key" is pressed as long as I press the button.
I tried this code:
if (button2.fallingEdge()) {
Keyboard.press(KEY_ENTER);
delay(300);
Keyboard.release(KEY_ENTER);
But it seam to work only if I relase the Button and not when I m press the button?
If I wire GND and RST it the same result as I am press the button: windows gives a signal and Teensy lost the connection to the pc. When I release the conncetion/button teensy is back again.
I change the USB Type to Keyboad+mouse+joystick. Now I get no error message.
But I m not able to upload the file. It says "Teensy did not respond". Also if I press the button on the board before.
Thanks a lot for your answer. Here ist my code:
#include <Bounce.h>
Bounce button0 = Bounce(0, 10);
Bounce button1 = Bounce(1, 10); // 10 = 10 ms debounce time
Bounce button2 = Bounce(2, 10); // which is appropriate for
Bounce button3 =...
Ok. But make a simply new hex file which converts three pressed buttons to three Keyboard-output is not a problem? Maybe someone have a working template for this case?
Hi,
I bought a pinball controller with a teensy 2.0 integrated. It simulates different keyboard keys on pressing the buttons from the Pinball controller. I already loaded the nessesary files an the teensy seems tob e recognized from the arduino...