I agree it's a bit annoying, but a better solution than using `as` is just telling reduce what its generic type should be: tasks.reduce<Record<string, (t: typeof tasks[number]) => boolean>>((acc, item) => ..., {}) Also…
Any reason why you didn't just use ESPHome for the firmware? It even has a component specifically for the ULN2003 stepper motor driver you were using https://esphome.io/components/stepper/#uln2003-component
I wonder if it would be possible to get ZMK working on it instead, since that's built primarily for wireless support, and also supports wired configurations too as of recently. Seems like the STM32 that the Q6 pro uses…
DEL is unicode codepoint U+007F, which is the byte 0x7F in UTF-8, not 0xFF. Perhaps you were thinking of ÿ which is codepoint U+00FF, which encodes to the bytes 0xC3 0xBF in UTF-8.
Here's an equivalent shell script that only uses bash builtins, so no other software required: #!/bin/bash mac="\\x${1//:/\\x}" wol="\xFF\xFF\xFF\xFF\xFF\xFF" for i in {1..16}; do wol+="$mac"; done printf "$wol" >…
I agree it's a bit annoying, but a better solution than using `as` is just telling reduce what its generic type should be: tasks.reduce<Record<string, (t: typeof tasks[number]) => boolean>>((acc, item) => ..., {}) Also…
Any reason why you didn't just use ESPHome for the firmware? It even has a component specifically for the ULN2003 stepper motor driver you were using https://esphome.io/components/stepper/#uln2003-component
I wonder if it would be possible to get ZMK working on it instead, since that's built primarily for wireless support, and also supports wired configurations too as of recently. Seems like the STM32 that the Q6 pro uses…
DEL is unicode codepoint U+007F, which is the byte 0x7F in UTF-8, not 0xFF. Perhaps you were thinking of ÿ which is codepoint U+00FF, which encodes to the bytes 0xC3 0xBF in UTF-8.
Here's an equivalent shell script that only uses bash builtins, so no other software required: #!/bin/bash mac="\\x${1//:/\\x}" wol="\xFF\xFF\xFF\xFF\xFF\xFF" for i in {1..16}; do wol+="$mac"; done printf "$wol" >…