We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14fe0b1 commit d757b1bCopy full SHA for d757b1b
2 files changed
led and button (1)/LedAndButton.ino
@@ -1,9 +1,8 @@
1
int button = 3;
2
3
+int LED1 = 10; // use the pin number that your led is pluged into
4
-int LED1 = 10;
5
-// use the pin number that your led is pluged into
6
-
+// the setup function is ran once when the arduino starts (gets power)
7
void setup()
8
{
9
Serial.begin(9600);
@@ -12,6 +11,7 @@ void setup()
12
11
13
}
14
+// the loop function is ran over and over again untill the arduino is turn off
15
void loop()
16
17
int Button1Pressed = digitalRead(button);
led and button (1)/project1.md
@@ -38,4 +38,9 @@ void setup()
38
39
40
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");
46
```
0 commit comments