driver for 595 for led bar
Revision 0:a3997e98e485, committed 2017-08-28
- Comitter:
- feilang
- Date:
- Mon Aug 28 13:24:31 2017 +0000
- Commit message:
- add 595 driver for LED BAR
Changed in this revision
lb.cpp | Show annotated file Show diff for this revision Revisions of this file |
lb.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r a3997e98e485 lb.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lb.cpp Mon Aug 28 13:24:31 2017 +0000 @@ -0,0 +1,17 @@ +#include "lb.h" + + +void lbDispaly::lb_init(PinName ds, PinName shcp, PinName stcp) +{ + +} +// send date to 595 for display, +void lbDispaly::lb_display(int date, char bit ) +{ + +} +//enable for display; OE enale when it's low +void lbDispaly::lb_enable(PinName OE) +{ + +} \ No newline at end of file
diff -r 000000000000 -r a3997e98e485 lb.h --- /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