diff --git a/lcd_hept/prog.ept b/lcd_hept/prog.ept index bea0445..15b96d1 100644 --- a/lcd_hept/prog.ept +++ b/lcd_hept/prog.ept @@ -13,14 +13,18 @@ let downt = not upt; () = lcd_string((msg, line) when upt); - () = lcd_string((".", line) when downt); + () = lcd_string((" ", line) when downt); tel node main() returns () -let - () = dinit(); - () = lcd_init(); +var j : int; + start : bool; +let + j = 0 fby (j+1); + start = j < 2; + () = dinit() when start; + () = lcd_init() when start; () = update_lcd<<6, 4, "Hello", 0>>(); - () = update_lcd<<10, 5, "Hi", 1>>(); + () = update_lcd<<2, 1, "Hi", 1>>(); tel