Skip to content

Commit d757b1b

Browse files
committed
update
1 parent 14fe0b1 commit d757b1b

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

led and button (1)/LedAndButton.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
int button = 3;
22

3+
int LED1 = 10; // use the pin number that your led is pluged into
34

4-
int LED1 = 10;
5-
// use the pin number that your led is pluged into
6-
5+
// the setup function is ran once when the arduino starts (gets power)
76
void setup()
87
{
98
Serial.begin(9600);
@@ -12,6 +11,7 @@ void setup()
1211

1312
}
1413

14+
// the loop function is ran over and over again untill the arduino is turn off
1515
void loop()
1616
{
1717
int Button1Pressed = digitalRead(button);

led and button (1)/project1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,9 @@ void setup()
3838
{
3939
Serial.begin(9600);
4040
}
41+
```
42+
43+
now let's print something . to print something in the serial monitor we need to use the function:
44+
```cpp
45+
Serial.print("Super Cool");
4146
```

0 commit comments

Comments
 (0)