![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Simplest of programs to print a number to the dispBoB
Dependencies: dispBoB mbed PCA9635
Revision 2:2cd54fb949d9, committed 2011-07-11
- Comitter:
- d_worrall
- Date:
- Mon Jul 11 14:14:47 2011 +0000
- Parent:
- 1:6af9f50cb98f
- Commit message:
Changed in this revision
printNumber.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6af9f50cb98f -r 2cd54fb949d9 printNumber.cpp --- a/printNumber.cpp Mon Jul 11 14:09:06 2011 +0000 +++ b/printNumber.cpp Mon Jul 11 14:14:47 2011 +0000 @@ -1,10 +1,11 @@ -#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); -} +#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); //print to the dispBoB as you would + //using the standard stdio.h printf() function +}