summaryrefslogtreecommitdiff
path: root/n/es-2006/src/lcd.c
diff options
context:
space:
mode:
authordufourj2006-05-25 20:45:21 +0000
committerdufourj2006-05-25 20:45:21 +0000
commitd4a465bb7fc8737df54ba49ea1b65396daecbdd2 (patch)
tree39154be35117772330ea6dad9bee120811763427 /n/es-2006/src/lcd.c
parent261eca7b454fffefe3f1a8b639d6789f9942853c (diff)
ES :
- gestion du grub avec le LCD ; - gestion des servo moteurs des totems.
Diffstat (limited to 'n/es-2006/src/lcd.c')
-rw-r--r--n/es-2006/src/lcd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/n/es-2006/src/lcd.c b/n/es-2006/src/lcd.c
index 7908be5..ac8d96b 100644
--- a/n/es-2006/src/lcd.c
+++ b/n/es-2006/src/lcd.c
@@ -25,6 +25,8 @@
#include "lcd.h"
#include "modules/twi/twi.h"
+#include "modules/proto/proto.h"
+#include "modules/utils/utils.h"
uint8_t grub_greeting[32] = "Booting ! Press 1 > NFS 2 > Auto";
@@ -39,10 +41,10 @@ void lcd_init (void)
}
/* Print something on the LCD */
-inline void lcd_print (uint8_t *string, uint8_t size)
+inline uint8_t lcd_print (uint8_t *string, uint8_t size)
{
/* Send to the LCD */
- twi_ms_send (TWI_LCD_ADDR, string, size);
+ return twi_ms_send (TWI_LCD_ADDR, string, size);
}
/* What key is pressed into the LCD keyboard ? */
@@ -56,6 +58,8 @@ uint8_t lcd_key (void)
/* Tell the LCD we have seen the Grub ! */
void lcd_grub_booting (void)
{
- lcd_print (grub_greeting, 16);
lcd_print (&grub_greeting[16], 16);
+ utils_delay_ms (4);
+ lcd_print (grub_greeting, 16);
+ utils_delay_ms (4);
}