From: Fabien Le Mentec Date: Sun, 16 Oct 2011 16:26:52 +0000 (-0500) Subject: [update] lcd example, minor X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=2834fed1d8dcb10495a5f641ece163f5fe7335ea;p=fw%2Fstlink [update] lcd example, minor --- diff --git a/example/lcd/main.c b/example/lcd/main.c index 34dfe66..36d6e52 100644 --- a/example/lcd/main.c +++ b/example/lcd/main.c @@ -325,9 +325,6 @@ static void __attribute__((naked)) __attribute__((used)) main(void) Init_GPIOs(); LCD_GLASS_Init(); - LCD_BlinkConfig(LCD_BlinkMode_AllSEG_AllCOM,LCD_BlinkFrequency_Div512); - LCD_GLASS_DisplayString("FUBAR"); - while (1) ; setup_leds(); @@ -335,15 +332,20 @@ static void __attribute__((naked)) __attribute__((used)) main(void) { /* switch_leds_on(); */ GPIO_HIGH(LD_GPIO_PORT, LD_GREEN_GPIO_PIN); - GPIO_HIGH(LD_GPIO_PORT, LD_BLUE_GPIO_PIN); + GPIO_HIGH(LD_GPIO_PORT, LD_BLUE_GPIO_PIN); + + LCD_GLASS_Clear(); + LCD_GLASS_DisplayString("ON "); + delay(); /* switch_leds_off(); */ GPIO_LOW(LD_GPIO_PORT, LD_GREEN_GPIO_PIN); GPIO_LOW(LD_GPIO_PORT, LD_BLUE_GPIO_PIN); - delay(); LCD_GLASS_Clear(); - LCD_GLASS_DisplayString("FUBAR"); + LCD_GLASS_DisplayString(" OFF"); + + delay(); } }