Simple library for controlling a shift register using only three pins on the mbed. Defaults to controlling an 8 bit shift register.
Dependents: Lab07_RTOS_display Lab07_RTOS_queue
Diff: ShiftOut.h
- Revision:
- 4:7333dc6fca5c
- Parent:
- 3:31000094ef1e
--- a/ShiftOut.h Tue Jul 14 07:28:28 2015 +0000 +++ b/ShiftOut.h Tue Jul 14 07:33:26 2015 +0000 @@ -10,11 +10,11 @@ public : - /** Constructs a new ShiftOut with the given three pins.\n - * clk - the pin to use for the shift register clock.\n - * data - the pin to use for the shift register data line.\n - * latch - the pin to use for the shift register latch.\n - * registerCount - the number of registers in the shift register, defaults to eight.\n + /** Constructs a new ShiftOut with the given three pins. + * @param clk - the pin to use for the shift register clock. + * @param data - the pin to use for the shift register data line. + * @param latch - the pin to use for the shift register latch. + * @param registerCount - the number of registers in the shift register, defaults to eight. */ ShiftOut(PinName clk, PinName data, PinName latch, int8_t registerCount = 0x08) { clkout = new DigitalOut(clk);