Page 1 of 1

i2c for LCD

Posted: Thu Feb 07, 2013 4:51 pm
by zadah
Hello

I tried this from Flowcode 4 forum:

http://www.matrixmultimedia.com/mmforum ... =26&t=8037

But it doesnt compile on flowcode 5.

Is there any similar simple solution for Flowcode 5 version ?

I have quite popular "Funduino i2c 20x4 LCD", which I would like to test with flowcode.

Re: i2c for LCD

Posted: Fri Feb 08, 2013 10:26 am
by Benj
Hello,

The file uses customised components, here is a version which should compile correctly in v5.
I2C_LCD_mcp.fcf
(40.25 KiB) Downloaded 548 times

Re: i2c for LCD

Posted: Sun Feb 10, 2013 8:07 pm
by zadah
Thanks Benj

It compiles now OK.

I would like to understand how the modified code works... I noticed that LCD RawSend macro is not calling transmit byte nor enable pulse i2c macros....

I didint understand when i2c transmission occurs inside the LCD macro.

Re: i2c for LCD

Posted: Wed May 15, 2013 1:14 pm
by bercioiu
Hi guys!

What chip (I/O Expander) have to use with that flowchart because I tried with MCP8574 and didn't work at all... And another question: RC7 used in the flowchart is for the VDD on LCD?
I use Flowcode V5 Prof. with all the updates.
I need that custom code because I don`t know how to use i2c and I have an project with LCD and the spot for LCD is 1 meter from the 16F887 and in the classic connection (6 wires), from time to time have to reset the pic because the LCD is going crazy.
Thank you!

Re: i2c for LCD

Posted: Wed May 15, 2013 4:12 pm
by Benj
I would like to understand how the modified code works...
The I2C code is hidden inside the Enable LCD macro.
What chip (I/O Expander) have to use with that flowchart because I tried with MCP8574 and didn't work at all
Think we used the MCP23017 which may have used to exist under the name of MCP23S17 or something similar.

Re: i2c for LCD

Posted: Sun May 26, 2013 3:30 pm
by bercioiu
In that thread with lcd_mcp file is another file for pcf, can you please fix that too to compile in the v5 Flowcode?