Skip to content

Commit

Permalink
add sysex implementation README
Browse files Browse the repository at this point in the history
  • Loading branch information
garubi committed Dec 15, 2023
1 parent cf94a95 commit 9ddcac3
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,51 @@
# Push Push
configurable arduino pedalboard

# sysex CONFIG implementation


IDENTIFIER MESSAGE_TYPE ACTION CONTENT_TYPE
F0 X_MANID1 X_MANID2 X_PRODID [REQ, REPL] [ GET, SET ] [...] F7

const uint8_t X_MANID1 = 0x37; // Manufacturer ID 1
const uint8_t X_MANID2 = 0x72; // Manufacturer ID 2
const uint8_t X_PRODID = 0x10; // Product ID

const byte VERSION_MAJOR = 1;
const byte VERION_MINOR = 0;
const byte VERSION_PATCH = 0;

const byte REQ = 0x00; // Request
const byte REP = 0x01; // Replay

const byte GET = 0x00;
const byte SET = 0x01;

const byte FAILED = 0x00;
const byte OK = 0x01;


//Where CONTENT_TYPE is:

// Ask the current configuration to Push Push:
REQ GET
// Push Push answer:
REPL GET VERSION_MAJOR VERION_MINOR VERSION_PATCH BUTTON_QTY BTN_n_MODIFIER_CODE_1 BTN_n_MODIFIER_CODE_2 BTN_n_MODIFIER_CODE_3 BTN_n_MODIFIER_CODE_4 BTN_n_KEY_CODE [...]

// Store the editor's fields as new configuration in Push Push:
REQ SET VERSION_MAJOR VERION_MINOR VERSION_PATCH BUTTON_QTY BTN_n_MODIFIER_CODE_1 BTN_n_MODIFIER_CODE_2 BTN_n_MODIFIER_CODE_3 BTN_n_MODIFIER_CODE_4 BTN_n_KEY_CODE [...]
// Push Push answer
REPL SET [OK, FAILED ]


per migliorare:
- https://www.partsnotincluded.com/diy-stream-deck-mini-macro-keyboard/

Nome USB device:

- https://forum.arduino.cc/t/multiple-leonardos-as-hid-joystick-how-to-change-the-names/402646

- https://gist.github.com/Hyratel/80017369fedd1bbc9eef4c8e7a896225

- https://github.com/NicoHood/HID/issues/125

0 comments on commit 9ddcac3

Please sign in to comment.