Hi,
I have the serial LCD from Sparkfun ( the 20 x 4 model ).
Everything works fine, it displays output from a photoresistor I have plugged in, but I have two problems:
1) The backlight and the autoscroll is not working.
2) I get a warning when I compile my code : "Initialization from incompatible pointer type".
Here is the code
#include "sys/axon2.h"
#include "rprintf.h"
#include "serLCD"
#include "hardware.h"
Writer(serLCD_put_char);
SPARKFUN_SERLCD serLCD=MAKE_SPARKFUN_SERLCD_20_4(UART3,9600, &serLCD_put_char); **in this line I get the warning**
void appInitHardware(void )
.....
....
uartInit(OTHER_UART,OTHER_BAUD);
displayInit(&serLCD);
displayBrightness(&serLCD, 65);
displayContrast(&serLCD,80);
displayBacklight(&serLCD, TRUE);
rprintf(OTHER_ACTIVATE);
....
I have redirected the output to the LCD and it works ok, baud rate is ok and I get good readings.
But none of the backlight-contrast-brightness command works.
The LCD's backlight goes on when I open it and I also tested it on a Wiring microcontroller and the backlight works perfect.
I also noticed a serLCD.c code in the Displays\Sparkfun folder.
Any way I can use these commands?
Any ideas to help me?
thanks!
Theo