I am trying to configure a “turbo” toggle to achieve the following:
Input: Tap of on key A
Output: A followed by ‘Up’ arrow key, on repeat.
I am trying to have actual key presses rather than them being held down. This movement pattern has flared up my RSI on my wrists and I need this fixed!
2 recall
1 add /* increment counter */
1 recall mul /* reset if toggle not active */
2 store
2 recall
500 mod
dup
/* alternate between the two outputs */
250 lt 2 recall not not mul 3 store /* counter < 250 and non-zero */
250 gt 4 store /* counter > 250 */
Wow! This is great. I was about to post a question about a very similar usage I’m looking for.
I wanted a repeating output of multiple characters from one input. I modified this for my purposes by changing the the second mapping input Register from 4 to 3. If I tap A, I get abababab…, but not toggling a-b-a-b…, it outputs ab-ab-ab… which is just what I want. I changed my output characters, of course.
Modifing the 500 and the 250 values to smaller numbers for faster repeat timing worked pretty well.
I set mine to 120 and 60 and I have a quick little repeating sticky key.
I’m using the Adafruit Feather RP2040 with USB Host for my Remapper.