LCD RGB

Files at this revision

API Documentation at this revision

Comitter:
KEG
Date:
Tue Jun 05 07:41:18 2018 +0000
Commit message:
Dashboard zepplin

Changed in this revision

Dashboard.cpp Show annotated file Show diff for this revision Revisions of this file
Dashboard.h Show annotated file Show diff for this revision Revisions of this file
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);
+}
+
+
+
diff -r 000000000000 -r a0ef433339ff Dashboard.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Dashboard.h	Tue Jun 05 07:41:18 2018 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "Grove_LCD_RGB_Backlight.h"
+
+class Dashboard : public Grove_LCD_RGB_Backlight
+{
+    public:
+    //Contructor
+    Dashboard(PinName sda, PinName scl);
+    //print T°C + P[hPa] + H[%]
+    void printData(char *dataToPrint);
+};
\ No newline at end of file