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.
Dependents: 1620_App_Board_Shift_Register 1620_App_Board_UART_getc 1620_Project_Template 1620_Project_Template ... more
ShiftReg.h
- Committer:
- eencae
- Date:
- 2017-02-20
- Revision:
- 0:4922f5f8bfa9
- Child:
- 1:33b34e0ed72c
File content as of revision 0:4922f5f8bfa9:
#ifndef SHIFTREG_H
#define SHIFTREG_H
#include <mbed.h>
/** A simple serial driver for a shift register that uses only three digital out pins.
* Based on a fork of Ollie8/ShiftOut
*/
class ShiftReg {
public :
ShiftReg();
~ShiftReg();
void write(int data);
private :
DigitalOut *clkout;
DigitalOut *dataout;
DigitalOut *latchout;
};
#endif