Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dashboard.cpp
- Committer:
- KEG
- Date:
- 2018-06-05
- Revision:
- 0:a0ef433339ff
File content as of revision 0:a0ef433339ff:
#include "mbed.h" #include "Dashboard.h" Dashboard::Dashboard(PinName sda, PinName scl):Grove_LCD_RGB_Backlight(sda,scl) { //Grove_LCD_RGB_Backlight(sda,scl); this->init(); }; void Dashboard::printData(char *str) { char* result; sprintf(result, "T: %d P: %d H: %d",str[0],(str[1]<<8) + str[2],str[3]); this->print(result); }