Skip to content

Commit 6d53a78

Browse files
Update README.md
1 parent b17bf88 commit 6d53a78

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,26 @@ void loop()
6464
### Code Explanation
6565
There are just 3 commands here:
6666

67-
`pinMode` is where you tell the Arduino
67+
`pinMode` is the command you tell the Arduino
6868
board what is the mode of a particular pin.
6969
If ever you did not mention that, then the
70-
default is `iput.
70+
default is `input`.
71+
72+
`digitalWrite` is the command whether
73+
there will be supply of voltage `HIGH`
74+
or there is none `LOW` for a particular
75+
pin, like in our example,
76+
Arduino Digital Pin 13. For a basic LED,
77+
we all know that when there is sufficient
78+
voltage, it will light up and if there
79+
is none, there will be none.
80+
81+
`delay` is the command for temporarily delay
82+
a program, just like a pause. If prior to
83+
this, an LED is light up, it will pause for
84+
a certain amount of time with the initial
85+
status of the LED. It's in terms of milliseconds,
86+
because for computers, they work in terms of
87+
milli or nanoseconds. For example, they can
88+
accomplish 1000 digital task in just 1 second.
89+
For high-powered servers, it's more than that.

0 commit comments

Comments
 (0)