Simplest of programs to print a number to the dispBoB
Dependencies: dispBoB mbed PCA9635
printNumber.cpp@1:6af9f50cb98f, 2011-07-11 (annotated)
- Committer:
- d_worrall
- Date:
- Mon Jul 11 14:09:06 2011 +0000
- Revision:
- 1:6af9f50cb98f
- Child:
- 2:2cd54fb949d9
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
d_worrall | 1:6af9f50cb98f | 1 | #include "mbed.h" |
d_worrall | 1:6af9f50cb98f | 2 | #include "dispBoB.h" |
d_worrall | 1:6af9f50cb98f | 3 | |
d_worrall | 1:6af9f50cb98f | 4 | dispBoB db(p28, p27, p26); |
d_worrall | 1:6af9f50cb98f | 5 | |
d_worrall | 1:6af9f50cb98f | 6 | int main() { |
d_worrall | 1:6af9f50cb98f | 7 | db.init(); //ALWAYS initialise screen |
d_worrall | 1:6af9f50cb98f | 8 | db.cls(); //clear screen |
d_worrall | 1:6af9f50cb98f | 9 | db.printf("%d%", 123456); |
d_worrall | 1:6af9f50cb98f | 10 | } |