void shiftOut( uint32_t ulDataPin, uint32_t ulClockPin, uint32_t ulBitOrder, uint32_t ulVal );
void shiftOut( uint32_t ulDataPin, uint32_t ulClockPin, uint32_t ulBitOrder, uint32_t ulVal );
Outputs a byte of data by bits on the assigned pin. Every bit of data is outputted from the data pin. You can select to start output from MSB or LSB of the data. Every clock cycle (meaning the clock goes through a complete high voltage and low voltage) outputs a bit of data.
|
Parameters |
Description |
|
uint32_t ulDataPin |
[IN] Data output pin, for outputting every bit of data |
|
uint32_t ulClockPin |
[IN] Clock pin. Periodically switches between high voltage and low voltage when dataPin outputs data |
|
uint32_t ulBitOrder |
[IN] Data output order. Can be MSBFIRST (MSB first) or LSBFIRST (LSB first) |
|
uint32_t ulVal |
[IN] Value to be outputted by bits (one byte) |
wiring_shift.h