This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

lcd project at stm32

Hi, I'm new in embedded system,I've stm32f100rb and I want to display a string at an lcd named jhd162a 16x2, but when I test it, the lcd always display a black line,I test it with an empty board and it's the same problem, one black line.
anyone have an idea please???
and thank you.

Parents
  • main.c

    #include <stddef.h>
    #include "stm32f10x_rcc.h"
    #include "stm32f10x_gpio.h"
    #include "lcd_hd44780_lib.h"
    #include "STM32vldiscovery.h"
    
    int main(void)
    {
    
            RCC_PLLConfig (0x00010000, RCC_PLLMul_2);
            lcd_init();
    
    
    
              while (1)
              {
    
                      lcd_locate(1,0);
                      lcd_str("ENSI");
                      lcd_locate(7,0);
                      lcd_str("STM32F1");
                      lcd_locate(0,1);
                      lcd_str("electronics");
    
              }
    
    }
    

Reply
  • main.c

    #include <stddef.h>
    #include "stm32f10x_rcc.h"
    #include "stm32f10x_gpio.h"
    #include "lcd_hd44780_lib.h"
    #include "STM32vldiscovery.h"
    
    int main(void)
    {
    
            RCC_PLLConfig (0x00010000, RCC_PLLMul_2);
            lcd_init();
    
    
    
              while (1)
              {
    
                      lcd_locate(1,0);
                      lcd_str("ENSI");
                      lcd_locate(7,0);
                      lcd_str("STM32F1");
                      lcd_locate(0,1);
                      lcd_str("electronics");
    
              }
    
    }
    

Children
No data