Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement