These questions were in my mind already and I will take as example this quote from How does one make a key that turns the LEDs off?:
- It isn’t really necessary to create a separate function for each macro is it? We can just inline the action inside the
- Why do we have to test
if (keyToggledOn(key_state))at all? Isn’t this function fired only when the key is pressed?