This code uses a rocker toggle on/off switch to control an LED, and separately writes some data to a microSD Card.