summaryrefslogtreecommitdiff
path: root/n
diff options
context:
space:
mode:
authorburg2006-05-25 17:58:37 +0000
committerburg2006-05-25 17:58:37 +0000
commitc1c0369199a8fdcf05aea48a2f3e13f11373229f (patch)
tree2b018c98d3ca0a474a2873911e70c87108d6bb7e /n
parentd7f6cf302ce2bcedfb1eacba8dffb69877644f8c (diff)
Ok le lcd est géré par les lignes de 16 caractère avec 1 ligne
d'historique
Diffstat (limited to 'n')
-rw-r--r--n/lcd/src/lcd.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/n/lcd/src/lcd.c b/n/lcd/src/lcd.c
index b81dcb0..146d111 100644
--- a/n/lcd/src/lcd.c
+++ b/n/lcd/src/lcd.c
@@ -91,23 +91,6 @@ lcd_send_string_n (const char *s, u8 i)
}
}
-//lcd_send_line(const char *s,u8 i,u8 l)
-//{
-// u8 cpt ;
-// lcd_transit_command(0x01); // suffit d'envoyer les bits de gauche droite : D7D6D5D4 en hexa
-// utils_delay_ms(2);
-// if ( l == 0 )
-// lcd_transit_command(0x02);
-// else
-// lcd_transit_command(0xc0);
-// utils_delay_ms(2);
-// for (cpt = 0 ; cpt < 16 && cpt < i ; cpt++)
-// {
-// lcd_send_character(s[cpt]);
-// }
-//
-//}
-
/* Envois une chane de caractre. */
void
lcd_send_string (const char *s)
@@ -312,6 +295,7 @@ main (void)
{
char old_key = 0;
uint8_t data_rcpt[TWI_SL_RCPT_SIZE];
+ uint8_t data_to_print[TWI_SL_RCPT_SIZE*2] = "*****************";
sei ();
uart0_init ();
lcd_init ();
@@ -327,7 +311,11 @@ main (void)
if (twi_sl_poll (data_rcpt, TWI_SL_RCPT_SIZE))
{
- lcd_send_string_n(data_rcpt,32);
+ /* rajouter le test du de l'tat*/
+ memcpy ( &data_to_print[16], &data_to_print[0],16);
+ memcpy ( &data_to_print[0], data_rcpt,16);
+ lcd_send_string_n(data_to_print,32);
+ proto_send0('R');
}
twi_sl_update (&old_key, TWI_SL_SEND_SIZE);