Hi all,
I am currently using the HP488 dev board.
I'm struggling with the initialization of the LCD. If there's someone with an example of the LCD display in C, if you could send it to me, it'd be much appreciated.
Thanks,
Ryan
E-block LCD
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: E-block LCD
Are you trying to program it using Flowcode or using C code (with another programmer/IDE) ?
If you're using Flowcode.
- Select the LCD component
- Set PORTB for the LCD connections (somewhere in the component properties) because LCD is connected to PORTB on the HP488 dev board
- Use the init LCD functions (or something like that) to initialize the LCD
- Optional : I usually add a little delay (20ms, 100ms, ...) after the init function
- Optional : Clear screen
- Main loop
- Write stuff on LCD screen
- End loop
That's how I do it with Flowcode
.
Nicolas
If you're using Flowcode.
- Select the LCD component
- Set PORTB for the LCD connections (somewhere in the component properties) because LCD is connected to PORTB on the HP488 dev board
- Use the init LCD functions (or something like that) to initialize the LCD
- Optional : I usually add a little delay (20ms, 100ms, ...) after the init function
- Optional : Clear screen
- Main loop
- Write stuff on LCD screen
- End loop
That's how I do it with Flowcode
![Wink ;)](./images/smilies/icon_wink.gif)
Nicolas
Re: E-block LCD
Thanks,Spanish_dude wrote:Are you trying to program it using Flowcode or using C code (with another programmer/IDE) ?
If you're using Flowcode.
- Select the LCD component
- Set PORTB for the LCD connections (somewhere in the component properties) because LCD is connected to PORTB on the HP488 dev board
- Use the init LCD functions (or something like that) to initialize the LCD
- Optional : I usually add a little delay (20ms, 100ms, ...) after the init function
- Optional : Clear screen
- Main loop
- Write stuff on LCD screen
- End loop
That's how I do it with Flowcode.
Nicolas
I'm actually using a C compiler, I've tried the trial version of flowcode and managed to get the LCD working, but I'd rather use C to do my programming in. I can't afford to purchase flowcode, and I have a C compiler for the PIC so I'm using that.
thanks though.
Ryan
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: E-block LCD
Hi,
You can look at the C code behind any Flowcode file by going to:
Chip >> View C
This might help you out a bit more as you can look at a lot of the component C code and general Flowcode C code in the Flowcode install folder.
You can look at the C code behind any Flowcode file by going to:
Chip >> View C
This might help you out a bit more as you can look at a lot of the component C code and general Flowcode C code in the Flowcode install folder.