Simplest of programs to print a number to the dispBoB

Dependencies:   dispBoB mbed PCA9635

printNumber.cpp

Committer:
d_worrall
Date:
2011-07-11
Revision:
2:2cd54fb949d9
Parent:
1:6af9f50cb98f

File content as of revision 2:2cd54fb949d9:

#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
}