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.
Diff: Dashboard.cpp
- Revision:
- 0:a0ef433339ff
diff -r 000000000000 -r a0ef433339ff Dashboard.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Dashboard.cpp Tue Jun 05 07:41:18 2018 +0000
@@ -0,0 +1,18 @@
+#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);
+}
+
+
+