qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.08k stars 38.87k forks source link

[DOC] Tap Dance - Refactor Tap Hold code sample #24305

Open iamdanielv opened 1 month ago

iamdanielv commented 1 month ago

Was getting confused between tap, hold, and held and how they were being used in code. I've renamed the variables and added comments to the sample to hopefully make it easier to understand how it works.

Description

I've refactored the sample for Tap Hold to use more descriptive variable names and added comments to hopefully make it easier to follow what is happening.

Types of Changes

Issues Fixed or Closed by This PR

N/A

Checklist