Shifty
Shifty copied to clipboard
Simple and flexible shift register manager for Arduino
Setting pin number "-1" to INPUT may cause problems on some devices. Therefore, ignore this action when readPin is -1.
Pin order in example code is clearly specified in the wrong order. It's data, clock and latch https://github.com/johnnyb/Shifty/blob/1fe332c9a933f25999ec680a46c8d129840966e6/src/Shifty.cpp#L29 whereas example incorrectly says ```c // Set the clock, data, and latch...
please help me to know where I can change the code to work with 3 shifts I tried to change the code below but still work with 2 shifts only....
I tried the simple example on WOKWI but it didn't work. Of course, the library is included in WOKWI. No error occurred, but the LED in the example code does...
For some situations it would be nice to be able to set all bits at once.
The setPins function does not check if the readPin is defined when pinMode is called. On some boards this results in a lockup, when pinMode(-1, INPUT) is called. See: https://github.com/johnnyb/Shifty/blob/1fe332c9a933f25999ec680a46c8d129840966e6/src/Shifty.cpp#L20...
Arduino:1.8.1 (Windows 7), 开发板:"Arduino/Genuino Uno" C:\Users\wsy0315\Desktop\arduino-1.8.1\Arduino\libraries\Shifty\src\Shifty.cpp:68:46: error: no 'void Shifty::setBitMode(int, bool)' member function declared in class 'Shifty' void Shifty::setBitMode(int bitnum, bool mode) { ^ exit status 1 为开发板 Arduino/Genuino Uno...
A month or so ago, I submitted a pull request that fixes this: https://github.com/johnnyb/Shifty/pull/3
I'm working on a project that requires some more PWM capable pins. I'm going to try software PWM over shift registers. I'll submit a PR if I can get it...
Reads were not working. This pull request does two things: 1. Makes it so compiles work 2. Make it so reads work