Simplest of programs to print a number to the dispBoB

Dependencies:   dispBoB mbed PCA9635

Committer:
d_worrall
Date:
Mon Jul 11 14:14:47 2011 +0000
Revision:
2:2cd54fb949d9
Parent:
1:6af9f50cb98f

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
d_worrall 2:2cd54fb949d9 1 #include "mbed.h"
d_worrall 2:2cd54fb949d9 2 #include "dispBoB.h"
d_worrall 2:2cd54fb949d9 3
d_worrall 2:2cd54fb949d9 4 dispBoB db(p28, p27, p26);
d_worrall 2:2cd54fb949d9 5
d_worrall 2:2cd54fb949d9 6 int main() {
d_worrall 2:2cd54fb949d9 7 db.init(); //ALWAYS initialise screen
d_worrall 2:2cd54fb949d9 8 db.cls(); //clear screen
d_worrall 2:2cd54fb949d9 9 db.printf("%d%", 123456); //print to the dispBoB as you would
d_worrall 2:2cd54fb949d9 10 //using the standard stdio.h printf() function
d_worrall 2:2cd54fb949d9 11 }