Ajout lcd_backlight dans lcd.h

This commit is contained in:
tzim 2019-09-06 23:05:47 +02:00
parent d6fa89ab4e
commit 06cd56465f
2 changed files with 11 additions and 1 deletions

2
lcd.h
View file

@ -83,6 +83,6 @@ void lcd_leftToRight(void) ;
void lcd_rightToLeft(void) ;
void lcd_autoscroll(void) ;
void lcd_noAutoscroll(void);
void lcd_backlight(uint8_t value);
#endif

10
main.c
View file

@ -32,7 +32,17 @@ int main(void)
_delay_ms(3000);
lcd_backlight(1);
lcd_display();
_delay_ms(3000);
lcd_backlight(0);
lcd_display();
while (1){
lcd_setCursor(0,3);
lcdprint("Arnaud HOUDELETTE");
_delay_ms(3000);
lcd_setCursor(0,3);
lcdprint("Emmanuel LANGLOIS");
_delay_ms(3000);
}