-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## duckSpark.js | ||
|
||
### Convert the rubber ducky script to Arduino IDE friendly code. | ||
|
||
|
||
### This will generate code containing those kind of lines: | ||
|
||
|
||
### DigiKeyboard.delay(3000); | ||
|
||
|
||
#### straight foward, no comment. | ||
|
||
|
||
### DigiKeyboard.println("notepad"); | ||
|
||
|
||
#### println use the array scancode-ascii-table.h | ||
|
||
#### this array maps ascii's code -> scancode | ||
|
||
|
||
### DigiKeyboard.sendKeyStroke(KEY_R,MOD_GUI_LEFT); | ||
|
||
### DigiKeyboard.sendKeyStroke(KEY_ENTER); | ||
|
||
|
||
#### sendKeyStroke use scancodes defined with #define in DigiKeyboard.h | ||
|
||
|
||
## DigiKeyboard.h (vary with the target keyboard layout ie keyboard's language) | ||
|
||
### Contains scancodes (#define at the beginnig of the file) for single keystroke and keystroke with modifiers. | ||
|
||
|
||
## scancode-ascii-table.h (vary with the target keyboard layout ie keyboard's language) | ||
|
||
### Maps ascii-table to scancode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters