YX ZHANG
/
NiXie
hello Nixie
Fork of NiXie by
main.cpp@3:f5ff314d5a4c, 2017-10-09 (annotated)
- Committer:
- zhangyx
- Date:
- Mon Oct 09 16:31:25 2017 +0000
- Revision:
- 3:f5ff314d5a4c
- Parent:
- 2:57e4a4136076
demo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
heroistired | 0:b5bd2bc3c14d | 1 | #include "mbed.h" |
heroistired | 0:b5bd2bc3c14d | 2 | #include "Nixie.h" |
heroistired | 0:b5bd2bc3c14d | 3 | |
heroistired | 0:b5bd2bc3c14d | 4 | //数码管驱动示例 |
heroistired | 0:b5bd2bc3c14d | 5 | |
zhangyx | 3:f5ff314d5a4c | 6 | Nixie myNixie(PB_9,PB_7,PB_8); //声明数码管类 依次是 DIO SCK RCK 任意GPIO脚都可以 |
zhangyx | 3:f5ff314d5a4c | 7 | |
heroistired | 0:b5bd2bc3c14d | 8 | int main() |
heroistired | 0:b5bd2bc3c14d | 9 | { |
heroistired | 0:b5bd2bc3c14d | 10 | while(1) |
heroistired | 0:b5bd2bc3c14d | 11 | { |
zhangyx | 3:f5ff314d5a4c | 12 | myNixie.NixieShowNumber(12345678,5); |
zhangyx | 3:f5ff314d5a4c | 13 | wait_us(1); |
heroistired | 0:b5bd2bc3c14d | 14 | } |
heroistired | 0:b5bd2bc3c14d | 15 | } |