Otay! After a ton of busy busy busy, here's an update!
Bluetooth testing has been going well. It managed to get 96 hours of being left on continuously and being used on my iPad before needing a recharge. Sweet.
The switch on the back just switches between USB power and the output from the voltage regulator, which takes care of flashing while connected to USB.
Having no coding experience (BASIC doesn't count), I've been setting aside time with my morning coffee to read some C tutorials. Still can't see the individual trees from the forest, but they're getting less fuzzy. I always thought I'd get my feet wet with Python first, but C is more relevant since I've jumped into the MCU waters.
Alongside the C tutorials I've been staring at various config files and examples in TMK, and some things are starting to make sense. Kind of.
At the moment I'm stuck on this:
Pressing shift+Scroll sends Num Lock. Cool, but how do I also tell it to toggle the number pad layer? I tried using add_key (KC_FN2) and defining it as ACTION_LAYER_TOGGLE(1), but that doesn't work. (FN2 works if I put it on the default layer though).
Here's the code example I borrowed and modified:
Code: Select all
switch (id) {
// Shift + Scroll Lock -> Num Lock
case SHIFT_NUM:
shift_mod = get_mods()&MODS_SHIFT_MASK;
if (record->event.pressed) {
if (shift_mod) {
add_key(KC_NLCK);
send_keyboard_report(); // send Num Lock with shift + Scroll Lock
} else {
del_mods(shift_mod); // remove shift
add_key(KC_SLCK);
send_keyboard_report(); // send Scroll Lock
add_mods(shift_mod); // return shift but not sent
}
} else {
if (shift_mod) {
del_key(KC_NLCK);
send_keyboard_report();
} else {
del_key(KC_SLCK);
send_keyboard_report();
}
}
break;
Also on the agenda is switching host protocols for USB/BT via a FN key, and setting a pair button, but I think I've found some good examples to work my way through it.