summaryrefslogtreecommitdiffhomepage
path: root/digital/lcd/src/lcd.hh
diff options
context:
space:
mode:
authorGuillaume Milan2013-05-10 13:46:24 +0200
committerNicolas Schodet2013-05-10 21:53:11 +0200
commite679cd626352858262e49e8632954b8b4d21d1bb (patch)
tree7454476d754c291f994b28b66efbf8c2218e0648 /digital/lcd/src/lcd.hh
parent04b3d6d78ab60ab7c15dd9affbef521acf584f1f (diff)
digital/ld/src: fix the bug of i2c communication
if th io/hub givewrong information the lcd give an error message
Diffstat (limited to 'digital/lcd/src/lcd.hh')
-rw-r--r--digital/lcd/src/lcd.hh4
1 files changed, 3 insertions, 1 deletions
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_;
};