00001 #include "corobot_diagnostics/lcd.hpp" 00002 //#include <usblcd.h> 00003 00004 using namespace std; 00005 00011 //usblcd_operations *mylcd; // our lcd 00012 00013 Lcd::Lcd() 00014 { 00015 /* init hid device and usblcd_operations structure */ 00016 // mylcd = new usblcd_operations(); 00017 00018 /* init the USB LCD */ 00019 // mylcd->init(mylcd); 00020 00021 /* sets backlight to on */ 00022 // mylcd->backlight(mylcd,1); 00023 } 00024 00025 Lcd::~Lcd() 00026 { 00027 /* close the USB LCD device */ 00028 // mylcd->close(mylcd); 00029 00030 // delete mylcd; 00031 } 00032 00033 void Lcd::write(string message) const 00034 { 00035 // mylcd->clear(mylcd); // clear the lcd screen 00036 // mylcd->settext(mylcd, 0, 0, (char*) message.c_str()); // set text 00037 }