Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
(Another thing: your LCD_DATAx are defined but never used in the whole file. Might be a reasonHello!
In order to be helped, it might be wise to clearly say what's wrong. What do you want exactly?
I have tried to look at the code, but I would be in trouble if asked what it does.
Beside this, in any of your while loops, there are 2 occurrences of the measure function.
Usually you don't do that. You measure once per loop, you check other variables, buttons, etc,
and you update the display once per loop. You recalculate alpha (whatever it is) all the time,
etc...
Last but not least, you shouldn't use floats in an embedded system, except if there is really
no way to do otherwise.
Another thing: your LCD_DATAx are defined but never used in the whole file. Might be a reason
why it doesn't work. LCD_RW_PIN either.
I was saying "last but not least" but the more I look at the code, the more errors.
Your lcd.c includes lcd.c. Are you sure you want to do that?
Dora.
(Another thing: your LCD_DATAx are defined but never used in the whole file. Might be a reason
why it doesn't work. LCD_RW_PIN either.)
Yes, this could be the problem. I am trying to solve it
Thanks for reply
lcd_putc('\f'); // Clear LCD screen
printf(lcd_putc,".....
#define LCD_RS_PIN PIN_xx
#define LCD_ENABLE_PIN PIN_xx
#define LCD_RW_PIN PIN_xx
#define LCD_DATA4 PIN_xx
#define LCD_DATA5 PIN_xx
#define LCD_DATA6 PIN_xx
#define LCD_DATA7 PIN_xx
#include <lcd.c>
Absolutely correct. If the symbols are undefined at the time of lcd.c processing, some defaults defined in lcd.c will take effect, most likely different from what you expect.As far as I know, all the LCD pin defines should be placed before the LCD include, not after as you did