Sorry, your description is a little unclear. Please try again:
-
What do want the sketch to do? Include all desired startup, run, and terminative behaviors.
-
What does the sketch actually do now? How is that different than what you want?
Also, please post your code between code tags -- those '</>' symbols, use the button here:
That way your code will look like this (much easier to read and import into the IDE):
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
