File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
examples/Setting Up Portenta H7 For Arduino/Blink Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 11// the setup function runs once when you press reset or power the board
2- void setup () {
2+ void setup (){
33 // initialize digital pin LED_BUILTIN as an output.
44 pinMode (LED_BUILTIN, OUTPUT);
5+ digitalWrite (LED_BUILTIN, HIGH); // turn the LED off after being turned on by pinMode()
56}
67
78// the loop function runs over and over again forever
8- void loop () {
9- digitalWrite (LED_BUILTIN, HIGH ); // turn the LED on (HIGH is the voltage level)
10- delay (1000 ); // wait for a second
11- digitalWrite (LED_BUILTIN, LOW ); // turn the LED off by making the voltage LOW
12- delay (1000 ); // wait for a second
9+ void loop (){
10+ digitalWrite (LED_BUILTIN, LOW ); // turn the LED on (LOW is the voltage level)
11+ delay (1000 ); // wait for a second
12+ digitalWrite (LED_BUILTIN, HIGH ); // turn the LED off by making the voltage HIGH
13+ delay (1000 ); // wait for a second
1314}
You can’t perform that action at this time.
0 commit comments