File tree 1 file changed +7
-6
lines changed
examples/Setting Up Portenta H7 For Arduino/Blink
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
// the setup function runs once when you press reset or power the board
2
- void setup () {
2
+ void setup (){
3
3
// initialize digital pin LED_BUILTIN as an output.
4
4
pinMode (LED_BUILTIN, OUTPUT);
5
+ digitalWrite (LED_BUILTIN, HIGH); // turn the LED off after being turned on by pinMode()
5
6
}
6
7
7
8
// 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
13
14
}
You can’t perform that action at this time.
0 commit comments