Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Writing 8 bits out using a byte input type
uas_arduino
Jan 25th, 2013
115
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
void
writeByte
(
byte data, byte
[
]
pins
)
{
for
(
byte a
=
0
;
a
<
8
;
a
++
)
{
if
(
(
data
>>
a
)
&
0x01
)
{
digitalWrite
(
pins
[
a
]
, HIGH
)
;
}
else
{
digitalWrite
(
pins
[
a
]
, LOW
)
;
}
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
💎💎 QUICK $2,500 IN 2 HOURS 💎💎
JavaScript | 8 sec ago | 0.67 KB
💎 2OOO$ 15 MIN INSANE METHOD 💵🚨 ⭐📌
JavaScript | 37 sec ago | 0.67 KB
🔥🔥🔥 Money leaks on our channel
JavaScript | 1 min ago | 0.67 KB
📌 VIP MONEY METHOD 📌 ⭐✅
JavaScript | 1 min ago | 0.67 KB
⭐⭐ Instant Money Method ⭐⭐
JavaScript | 2 min ago | 0.67 KB
⭐ EARN 11,500$ IN LESS THAN 10 MINUTES ✅🎯
JavaScript | 2 min ago | 0.67 KB
⭐⭐ FREE BTC GUIDE ✅ Working ⭐⭐
JavaScript | 3 min ago | 0.67 KB
💎💎💎 HOW TO EARN $5,000 A WEEK [GUIDE] 💎 📌✅
JavaScript | 3 min ago | 0.67 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!