driver for 595 for led bar
Diff: lb.h
- Revision:
- 0:a3997e98e485
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lb.h Mon Aug 28 13:24:31 2017 +0000 @@ -0,0 +1,18 @@ +#ifndef _lb_H_ +#define _lb_H_ +#include "mbed.h" + +class lbDispaly { +public: + //ds for date to 595, shcp date input clock,stcp date outclock + void lb_init(PinName ds, PinName shcp, PinName stcp); + // send date to 595 for display, + void lb_display(int date, char bit ); + //enable for display; OE enale when it's low + void lb_enable(PinName OE); +}; + + + + +#endif \ No newline at end of file