Switch and LED on the same pin, suggestions FYI

Scope vs logic analyzer: