Simplest of programs to print a number to the dispBoB
Dependencies: dispBoB mbed PCA9635
Revision 1:6af9f50cb98f, committed 2011-07-11
- Comitter:
- d_worrall
- Date:
- Mon Jul 11 14:09:06 2011 +0000
- Parent:
- 0:bd428966f029
- Child:
- 2:2cd54fb949d9
- Commit message:
Changed in this revision
main.cpp | Show diff for this revision Revisions of this file |
printNumber.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jul 11 14:07:42 2011 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -#include "mbed.h" -#include "dispBoB.h" - -dispBoB db(p28, p27, p26); - -int main() { - db.init(); //ALWAYS initialise screen - db.cls(); //clear screen - db.printf("%d%", 123456); -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/printNumber.cpp Mon Jul 11 14:09:06 2011 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" +#include "dispBoB.h" + +dispBoB db(p28, p27, p26); + +int main() { + db.init(); //ALWAYS initialise screen + db.cls(); //clear screen + db.printf("%d%", 123456); +}