Skip to content

Commit

Permalink
Adding tips to maintain the project
Browse files Browse the repository at this point in the history
  • Loading branch information
gg64du02 committed Jun 13, 2018
1 parent 6c6df04 commit cdae169
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
38 changes: 38 additions & 0 deletions TIPS_TO_MAINTAIN.md
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
3 changes: 2 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ still works but you can't read the lines' number if you are on firefox
multiOS 7 8 10 admin command prompt script

# TODO: Try to came a with a single array generation during code translation (duckSpark.js)
maybe it will save the lenght issue ?!?
maybe it will save some RAM and allow more lenght ?!?

# TODO: check support of this below string for french keyboard
DigiKeyboard.println("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890ß ü+öä#,.- !"X$%&/()=? Ü*ÖÄ';:_ {[]}\~ <>| @§ ^´``");
Expand Down Expand Up @@ -100,6 +100,7 @@ w/ proper stylesheet ?

# DONE: test chrome: works (58% marketshare)

# DONE: add explaination about what is the main purpose of each files

# =============================================================

Expand Down

0 comments on commit cdae169

Please sign in to comment.