From e679cd626352858262e49e8632954b8b4d21d1bb Mon Sep 17 00:00:00 2001 From: Guillaume Milan Date: Fri, 10 May 2013 13:46:24 +0200 Subject: digital/ld/src: fix the bug of i2c communication if th io/hub givewrong information the lcd give an error message --- digital/lcd/src/lcd.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'digital/lcd/src/lcd.hh') diff --git a/digital/lcd/src/lcd.hh b/digital/lcd/src/lcd.hh index 5540c179..a3caced1 100644 --- a/digital/lcd/src/lcd.hh +++ b/digital/lcd/src/lcd.hh @@ -66,6 +66,9 @@ class LCD void draw_char( uint16_t color ,char caract, Rect pos); ///write a sentence center on pos void draw_sentence( uint16_t color ,const char *sentence, Rect pos); + ///write a sentence first caractere has pos as position + int draw_sentence_left( uint16_t color ,const char *sentence, Rect pos); + int belong ( int x, int y); //does the point belong to the screen? private: void set_cursor (int x, int y); void write_index (uint16_t index); @@ -73,7 +76,6 @@ class LCD uint16_t read_data (); void write_reg (uint16_t index, uint16_t data); uint16_t read_reg (uint16_t index); - int belong ( int x, int y); //does the point belong to the screen? private: ucoo::Gpio cs_, rs_, wr_, rd_, reset_, bl_; }; -- cgit v1.2.3