Teensy 2.0 donwload

Your USB cable is fine. These lines confirm you do have a Teensy board connected.

Code:
12:36:04.505 (reboot 4): found_usb_device, id=\\?\usb#vid_16c0&pid_0482#5&32dec797&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
12:36:04.505 (reboot 4): found_usb_device, loc=usb:0/140000/0/3    Port_#0003.Hub_#0002
12:36:04.505 (reboot 4): found_usb_device, hwid=USB\VID_16C0&PID_0482&REV_0271

When you press the pushbutton on Teensy, it is supposed to disconnect and reappear as HID with PID=0478.

Here are the lines I see where when a Teensy 3.2 connects after I press and release the pushbutton. You may see slightly different because you're using Windows and Teensy 2.0, but it should be similar info.

Code:
04:58:20.808 (loader): action add: /dev/hidraw3
04:58:20.808 (loader): USB add /dev/hidraw3, vid=16C0, pid=0478, ver=0105, serial=0013B2E9, location=usb3/3-1/3-1.4/
04:58:20.860 (loader): opening /dev/hidraw3, usage: 0021: Teensy 3.2 (MK20DX256)
04:58:20.860 (loader): Device came online, code_size = 262144
04:58:20.860 (loader): Board is: Teensy 3.2 (MK20DX256), version 1.05

If you get nothing printed in Verbose Information and the USB cable is good, then the only likely explanation is the pushbutton on your Teensy has failed. If it can't mechanically connect the signals on your Teensy, then of course nothing happens.

The pushbutton simply connects RST to GND on Teensy 2.0. If your pushbutton is not working, you can create the same result by just touching a wire between those 2 locations.

1760789008018.png
 
Last edited:
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.
 
Okay. And what can I do now?
You could try using a Teensy 3.2 instead. It's 5V tolerant. Although these are not normally current product, Paul has a limited number of newly manufactured 3.2s for sale at the moment. Be quick they won't stay available for long!
 
I tried this code:
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?
 
That suggests you have a button which produces a falling edge when you release it, which is unusual but not impossible. And your code (apart from the missing } at the end) does both a keyboard press and a release when your button is released.

It's quite hard to believe you've actually read and understood the documentation @BriComp and I linked to, understood it, written the code, discovered a problem, tried to solve it, failed, and posted, all in 5 minutes... We do try to help here, but we get tired of that fairly quickly if people look as if they're not putting much effort in.
 
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.
 
Back
Top