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.
lb.h@0:a3997e98e485, 2017-08-28 (annotated)
- Committer:
- feilang
- Date:
- Mon Aug 28 13:24:31 2017 +0000
- Revision:
- 0:a3997e98e485
add 595 driver for LED BAR
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| feilang | 0:a3997e98e485 | 1 | #ifndef _lb_H_ |
| feilang | 0:a3997e98e485 | 2 | #define _lb_H_ |
| feilang | 0:a3997e98e485 | 3 | #include "mbed.h" |
| feilang | 0:a3997e98e485 | 4 | |
| feilang | 0:a3997e98e485 | 5 | class lbDispaly { |
| feilang | 0:a3997e98e485 | 6 | public: |
| feilang | 0:a3997e98e485 | 7 | //ds for date to 595, shcp date input clock,stcp date outclock |
| feilang | 0:a3997e98e485 | 8 | void lb_init(PinName ds, PinName shcp, PinName stcp); |
| feilang | 0:a3997e98e485 | 9 | // send date to 595 for display, |
| feilang | 0:a3997e98e485 | 10 | void lb_display(int date, char bit ); |
| feilang | 0:a3997e98e485 | 11 | //enable for display; OE enale when it's low |
| feilang | 0:a3997e98e485 | 12 | void lb_enable(PinName OE); |
| feilang | 0:a3997e98e485 | 13 | }; |
| feilang | 0:a3997e98e485 | 14 | |
| feilang | 0:a3997e98e485 | 15 | |
| feilang | 0:a3997e98e485 | 16 | |
| feilang | 0:a3997e98e485 | 17 | |
| feilang | 0:a3997e98e485 | 18 | #endif |