Can a Teensy 2.0 plugged into a USB automatically boot when the PC powers up?

Status
Not open for further replies.

wolfv

Well-known member
I made a keyboard that runs on Teensy 2.0 (I am typing on it now).
Every time I reboot my PC, I use my old keyboard to log into my account and activate the Teensy loader, then I push the old keyboard out of the way and use the Teensy keyboard.
It would be nice if I could do away with the old keyboard and use the Teensy keyboard soon as the PC powers on, including going into BIOS.
Is there some way for a Teensy 2.0 to automatically start when the PC powers up?

Thank you.
 
I used a Teensy board to make a keyboard too. But after you use the Teensy loader to download the .hex file onto the Teensy board, the program/data stays on it forever (well, until you re-program it again with the loader). After being disconnected/powered on, as soon as it gets power, it starts running your program, exactly like you want. It only stops when you press the reset button, when it jumps into a different mode ready to be re-programmed with the loader.

My code is based on the usb_keyboard example code from www.pjrc.com and that works fine at the BIOS stage too.

Try it out with yours - it should already do exactly what you want :)
 
Thanks Peter, my Teensy keyboard performs as you described after all.

The problem was that my keyboard firmware was crashing before shutdown.
 
Status
Not open for further replies.
Back
Top