I understand the concept of switch debouncing, so that's not my question.
What I haven't seen is the basic questions of when does switch debouncing code need to be used?
Correct me if I am wrong but seems to me the only time switch debouncing code is needed is if the application requires the pressing of a push button in rapid secession as in setting the time (which was a pain in the rear which is why everyone's VCRs were flashing 12:00). Or to increase/decrease volume.
Applications like that make perfect sense as to why debounce is needed.
But what about for a simple application such as tuning on/off a light/LED as in beginners lesson 6?
Why no debounce code?