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 Wed Jul 13 2022 07:33:37 by 1.7.2