00001
00002
00003
00004
00005
00006
00007 #ifndef LCD_H_
00008 #define LCD_H_
00009
00010
00011 extern "C"
00012 {
00013 #include <cstdarg>
00014 #include "ecrobot_interface.h"
00015 #include "rtoscalls.h"
00016 };
00017
00018 namespace ecrobot
00019 {
00053 class Lcd
00054 {
00055 public:
00059 static const U32 MAX_CURSOR_X = 15;
00060
00064 static const U32 MAX_CURSOR_Y = 7;
00065
00069 static const U32 MAX_LCD_WIDTH = 100;
00070
00074 static const U32 MAX_LCD_DEPTH = 64/8;
00075
00081 Lcd(void);
00082
00088 void cursor(U32 x, U32 y);
00089
00095 void clear(bool lcdToo=false);
00096
00106 bool putf(const CHAR* format, ...);
00107
00116 void draw(const U8* data, U32 width, U32 depth, U32 xPosInWidth, U32 yPosInDepth);
00117
00125 void disp(void);
00126
00127 private:
00128 U32 mPosY;
00129 };
00130 }
00131
00132
00133 #endif