const int enablePin = 4; // Pin to enable/disable
const int ledPin = 5; // Pin to control an LED
void setup() {
pinMode(enablePin, OUTPUT); // Set enablePin as output
pinMode(ledPin, OUTPUT); // Set ledPin as output
digitalWrite(enablePin, HIGH); // Start with the component (LED) on
}
void loop() {
// Turn on the component (LED)
digitalWrite(enablePin, HIGH);
// Do stuff here (like reading data)
// Turn off the component (LED)
digitalWrite(enablePin, LOW);
// Wait before repeating
delay(1000);
}