Commit 4d074e8a authored by luca's avatar luca

Fixed shiftOut in MSBFIRST mode HIGH/LOW

parent 649f9782
......@@ -46,7 +46,7 @@ void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val)
digitalWrite(dataPin, val & 1);
val >>= 1;
} else {
digitalWrite(dataPin, val & 128);
digitalWrite(dataPin, (val & 128) != 0);
val <<= 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment