This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
digispark:tutorials:digikeyboard [2016/08/20 10:25] Larek Added Dated Content Tag |
digispark:tutorials:digikeyboard [2016/08/20 11:02] (current) Larek fixed DigiKeyboard.update() VS DigiKeyboard.delay() problem |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Take a look at the example: File->Examples->DigisparkKeyboard->Keyboard | Take a look at the example: File->Examples->DigisparkKeyboard->Keyboard | ||
| - | ^ Possible Dated Content FIXME^ | + | It is essential that DigiKeyboard.update() is called regularly (the beginning of the loop is good) to maintain USB communication. Using DigiKeyboard.delay() will automatically spam DigiKeyboard.update() calls during the delay period. If your loop code is fast just using DigiKeyboard.delay() will be sufficient. |
| - | | The following line is not found in the provided example, yet is claimed here in the wiki to be essential. This entry and/or the example should be updated to reflect whats current for the library. | | + | |
| - | It is essential that DigiKeyboard.update() is called at the beginning of the loop to maintain USB communication, otherwise you can use buttons, inputs, etc to trigger the keystrokes. | + | Otherwise you can use buttons, inputs, etc to trigger the keystrokes. |