We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all I need a simple LCD Program code without any other tasks such as serial and GPIO co that I can see it clearly how it works. I need it badly. I am using MCBSTM32 kit board. Would be grateful if you have simple code for me Thanks
Of course, I mean, "loads of..."
Thanks. Looks like it will take me time to learn. Ok Is that okay with you if I sent you a simple project to find out what I missed out?
#include <stdio.h> #include <stm32f10x_lib.h> // STM32F10x Library Definitions #include "STM32_Init.h" // STM32 Initialization #include "LCD.h" // LCD function prototypes int main (void) { lcd_init (); lcd_clear (); lcd_print (" HELLO DEMO "); set_cursor(0, 1); lcd_print (" http://www.keil.com "); }
When I compile the codes, no errors When I run, Nothing happened, no changes in the LCD When I debug, it stopped at lcd_init function using F11. To come out of the function, I used ctrl+F11, byt it could not come out. My friend says that there should a LCD code placed here in the main.c.
What do you think?
Clement
Yes, of course it will! It takes a great deal of practice and study - just like any other skill!
So what does that tell you?
Where do you need to look closer to find the cause of this problem?
"My friend says that there should a LCD code placed here in the main.c"
On what basis does he say that?
How, specifically, does he think that this will help?