//turn the LED on void on(){ digitalWrite(ledPin,HIGH); //set the pin HIGH and thus turn LED on } //turn the LED off void off(){ digitalWrite(ledPin,LOW); //set the pin LOW and thus turn LED off }