Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 20th, 2018
72
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
void setup()
{
pinMode(2,INPUT);
pinMode(3,OUTPUT);
}
void loop()
{
if (digitalRead(2)==1)
{
digitalWrite(3,HIGH); #LED is on
}
else
{
digitalWrite(3,LOW); #LED is off
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Infinite heat action
LScript | 1 min ago | 0.51 KB
Untitled
JSON | 16 min ago | 2.67 KB
ACL Linux
Bash | 28 min ago | 0.46 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 29 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 53 min ago | 0.38 KB
pastebin.ai - #1 pastebin.com alternative
PHP | 54 min ago | 0.81 KB
Untitled
Python | 58 min ago | 1.37 KB
VillamCalc
Python | 1 hour ago | 4.95 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!