
Simplest of programs to print a number to the dispBoB
Dependencies: dispBoB mbed PCA9635
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 }
Generated on Tue Dec 18 2018 06:55:47 by
