Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ShiftOut by
Diff: ShiftOut.h
- Revision:
- 3:31000094ef1e
- Parent:
- 2:78bb6ead1c28
- Child:
- 4:7333dc6fca5c
diff -r 78bb6ead1c28 -r 31000094ef1e ShiftOut.h --- a/ShiftOut.h Tue Jul 14 07:24:10 2015 +0000 +++ b/ShiftOut.h Tue Jul 14 07:28:28 2015 +0000 @@ -4,17 +4,17 @@ #include <mbed.h> /** A simple serial driver for a shift register that uses only three digital out pins leaving SPI and i2c free. - * ShiftOut can be configured bitness shift register but defaults to eight bits. + * ShiftOut can be configured for any size shift register but defaults to eight bits. */ class ShiftOut { public : - /** Constructs a new ShiftOut with the given three pins. - * clk - the pin to use for the shift register clock. - * data - the pin to use for the shift register data line. - * latch - the pin to use for the shift register latch. - * registerCount - the number of registers in the shift register, defaults to eight. + /** 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 */ ShiftOut(PinName clk, PinName data, PinName latch, int8_t registerCount = 0x08) { clkout = new DigitalOut(clk);