}
//*******************************************************************
(6)Test Results:
After uploading the program, the LED blinks with the interval of 1s.
(7) Code Explanations:
pinMode(LED,OUTPUT) - This function can denote that the pin is INPUT
or OUTPUT.
digitalWrite(LED , HIGH) -When pin is OUTPUT, we can set it to
HIGH(output 5V) or LOW(output 0V).
(8)Extension Practice:
The LED flashes for 1s through the test result. Therefore, delay time can
change flash frequency.
Test Code:
/*
keyestudio sun_follower