LCD RGB
Fork of Dashboard by
Dashboard.cpp
- Committer:
- KEG
- Date:
- 2018-06-05
- Revision:
- 0:a0ef433339ff
- Child:
- 1:666c0aa82871
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); }