Simplest of programs to print a number to the dispBoB

Dependencies:   dispBoB mbed PCA9635

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers printNumber.cpp Source File

printNumber.cpp

00001 #include "mbed.h"
00002 #include "dispBoB.h"
00003 
00004 dispBoB db(p28, p27, p26);
00005 
00006 int main() {
00007     db.init();      //ALWAYS initialise screen
00008     db.cls();       //clear screen
00009     db.printf("%d%", 123456);   //print to the dispBoB as you would 
00010                                 //using the standard stdio.h printf() function
00011 }