e-paper whereabouts board program
Dependencies: SDFileSystem mbed
extdio.h@2:9150515ecd68, 2017-05-23 (annotated)
- Committer:
- kohacraft
- Date:
- Tue May 23 22:40:04 2017 +0000
- Revision:
- 2:9150515ecd68
- Parent:
- 1:cb28911c7ba5
bug fix
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kohacraft | 1:cb28911c7ba5 | 1 | /* EDP interface board control progtam */ |
kohacraft | 1:cb28911c7ba5 | 2 | |
kohacraft | 0:e4c67c26ba3f | 3 | #define LE 0x01 |
kohacraft | 0:e4c67c26ba3f | 4 | #define OE 0x02 |
kohacraft | 0:e4c67c26ba3f | 5 | #define NC10 0x04 |
kohacraft | 0:e4c67c26ba3f | 6 | #define SPH 0x08 |
kohacraft | 0:e4c67c26ba3f | 7 | #define GMODE 0x10 |
kohacraft | 0:e4c67c26ba3f | 8 | #define SPV 0x20 |
kohacraft | 0:e4c67c26ba3f | 9 | #define CKV 0x40 |
kohacraft | 0:e4c67c26ba3f | 10 | #define EN 0x80 |
kohacraft | 0:e4c67c26ba3f | 11 | |
kohacraft | 1:cb28911c7ba5 | 12 | //Set CL pin |
kohacraft | 0:e4c67c26ba3f | 13 | void setCL( bool state ); |
kohacraft | 0:e4c67c26ba3f | 14 | |
kohacraft | 1:cb28911c7ba5 | 15 | //Set conrol bus |
kohacraft | 1:cb28911c7ba5 | 16 | void setContBus( char mask , bool state ); |
kohacraft | 0:e4c67c26ba3f | 17 | |
kohacraft | 1:cb28911c7ba5 | 18 | //Set data bus |
kohacraft | 1:cb28911c7ba5 | 19 | void setDataBus( char data ); |