Thursday, September 20, 2012

Tips for Arduino as a USB mouse or keyboard

For those of you starting to use the newer Arduino as a USB mouse or keyboard (or those that have been using the great Teensy microcontroller) here is a quick tip on your programs.  In your setup() add a safety delay of a few seconds so that in does not immediately start when you plug it in.  The reason for this is that if you want to reprogram it (a very likely occurrence) you do not want the microcontroller taking control and potentially closing your program or rewriting it before you can even upload the new one.  

No comments: