LCD RGB

Dependents:   Prg_TP_CAN

Fork of Dashboard by Karim EL GHARBI

Committer:
KEG
Date:
Tue Jun 05 07:41:18 2018 +0000
Revision:
0:a0ef433339ff
Child:
1:666c0aa82871
Dashboard zepplin

Who changed what in which revision?

UserRevisionLine numberNew contents of line
KEG 0:a0ef433339ff 1 #include "mbed.h"
KEG 0:a0ef433339ff 2 #include "Dashboard.h"
KEG 0:a0ef433339ff 3
KEG 0:a0ef433339ff 4 Dashboard::Dashboard(PinName sda, PinName scl):Grove_LCD_RGB_Backlight(sda,scl)
KEG 0:a0ef433339ff 5 {
KEG 0:a0ef433339ff 6 //Grove_LCD_RGB_Backlight(sda,scl);
KEG 0:a0ef433339ff 7 this->init();
KEG 0:a0ef433339ff 8 };
KEG 0:a0ef433339ff 9
KEG 0:a0ef433339ff 10 void Dashboard::printData(char *str)
KEG 0:a0ef433339ff 11 {
KEG 0:a0ef433339ff 12 char* result;
KEG 0:a0ef433339ff 13 sprintf(result, "T: %d P: %d H: %d",str[0],(str[1]<<8) + str[2],str[3]);
KEG 0:a0ef433339ff 14 this->print(result);
KEG 0:a0ef433339ff 15 }
KEG 0:a0ef433339ff 16
KEG 0:a0ef433339ff 17
KEG 0:a0ef433339ff 18