thompson-vii / kb16_rev2_vial_fw

compiled firmware for doio's kb16 rev2 (aka megalodon trip knob macropad)
65 stars 25 forks source link

how to add more macros #5

Open doors-of-perspective opened 1 year ago

doors-of-perspective commented 1 year ago

Hi,

I want to add more macros, I've asked around on QMK and VIAL discord but I'm not a coder so I don't understand anyone's replies.

One person said "add #define DYNAMIC_KEYMAP_MACRO_COUNT xx where xx is the number of macros that you want, eg #define DYNAMIC_KEYMAP_MACRO_COUNT 16 at the following line https://github.com/thompson-vii/kb16_rev2_vial_fw/blob/40d07283944b3f77a6bd671c4147a29dbb956deb/kb16/rev2/keymaps/vial/config.h#L8"

But that didn't do anything.

My knowledge of how this works is; I put the DOIO into boot mode then flash it with the bin file in QMK Toolbox. Then I get the 14 layers. I tried using QMK MSYS but none of these commands seems to do anything

make doio/kb16/rev2:default make doio/kb16/rev2:default:flash

I found these lines somewhere else " qmk compile -kb doio/kb16/rev2 -km default" "qmk flash -kb doio/kb16/rev2 -km default #"

but they just seem to reset the macro pad to the original 4 layers.

If anyone is able to break it down in simple terms how to add more macros in VIAL with a complete step by step guide that'd be amazing thanks. Everything else works fine, I just need more macros in VIAL.

thompson-vii commented 1 year ago

eeprom space is used by keymap layers first, then combo + macro + tapdance and whatever you have enabled occupies the rest of the available space.

You can either raise the emulate eeprom size #define STM32_ONBOARD_EEPROM_SIZE 8192

or lower the dynamic keymap count.

doors-of-perspective commented 1 year ago

Would you be able to break it down step by step for me?

All I know is: step 1: load macro pad into boot mode step 2: flash the pad with the bin file in QMK toolbox Step 3: it works.

That's as far as my knowledge goes with this stuff. So raising the eeprom space, is terminology lost on me. Thanks

thompson-vii commented 1 year ago

check the vial discord https://discord.gg/sgMhJsjr

doors-of-perspective commented 1 year ago

to quote myself "I want to add more macros, I've asked around on QMK and VIAL discord but I'm not a coder so I don't understand anyone's replies."

thompson-vii commented 1 year ago
  1. most qmk keyboard can be put into bootloader mode by holding the key at 0,0 while plugging in. In this case the top left most key. If you have qmk toolkit open during this time you should see the device connected. The board won't flash if it isn't in dfu
  2. config.h specifies the option for firmware configuration. add #define STM32_ONBOARD_EEPROM_SIZE 8192 to the file, if there is already a similar option there already increase the number, the unit is in bytes
  3. the name after the : is specifying the keymap name, the default is not setup for vial. type make doio/kb16/rev2:vial instead, if everything is setup correctly you will get a bin file under the vial-qmk directory
  4. i do not use msys i can't not advice you on this matter. I use qmk tool kit to flash the bin file
  5. modifying firmware require certain level of familiarity and competency on command line tool and editing source code. Process at your own risk. I assume no responsibility for bricking your hardware.
  6. check this https://old.reddit.com/r/MechanicalKeyboards/comments/ya82hm/doio_kb16_megalodon_trip_knob_macroapd_has_been/izbwrvp/