Skip to content

Commit 0c17a1f

Browse files
committed
fix pinMode for clock
1 parent 3475813 commit 0c17a1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

FastShiftIn.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ FastShiftIn::FastShiftIn(const uint8_t datapin, const uint8_t clockpin, const ui
1414
_bitorder = bitOrder;
1515

1616
pinMode(datapin, INPUT);
17-
pinMode(clockpin, INPUT);
18-
17+
pinMode(clockpin, OUTPUT);
1918

2019
// uint8_t _datatimer = digitalPinToTimer(datapin);
2120
// if (_datatimer != NOT_ON_TIMER) turnOffPWM(_datatimer); TODO

0 commit comments

Comments
 (0)