I'll try to explain what I want.
at the start of the program I want to auto search for i2s address and store the result in EEprom. So far all good. (here I have lcd_I2C1 as a dummy to be able to find a addreses).
Here comes the problem.
I now want to start the lcd_I2C2 component with LCD Address from eeprom. This I can not find out how to do.
is there anyone who can help me with this?
https://dl.dropboxusercontent.com/u/209 ... anner.fcfx
LCD (i2c) component. is this possible?
Moderator: Benj
-
- Posts: 101
- Joined: Tue Sep 01, 2015 9:37 pm
- Been thanked: 14 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: LCD (i2c) component. is this possible?
Hello,
I have looked at the component source, there is a SetI2CAddress macro but it had not been exposed in the component.
So I have now exposed the macro for you and you should be able to access it by copying the file below to your "Flowcode 6/Components" folder and restarting Flowcode.
The Set Address macro must be called before you call the Start macro.
Let us know how you get on.
I have looked at the component source, there is a SetI2CAddress macro but it had not been exposed in the component.
So I have now exposed the macro for you and you should be able to access it by copying the file below to your "Flowcode 6/Components" folder and restarting Flowcode.
The Set Address macro must be called before you call the Start macro.
Let us know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: LCD (i2c) component. is this possible?
Here is the same fix done for v7,
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 101
- Joined: Tue Sep 01, 2015 9:37 pm
- Been thanked: 14 times
- Contact:
Re: LCD (i2c) component. is this possible?
Thanks Benj this worked perfectly
Benj wrote:Hello,
I have looked at the component source, there is a SetI2CAddress macro but it had not been exposed in the component.
So I have now exposed the macro for you and you should be able to access it by copying the file below to your "Flowcode 6/Components" folder and restarting Flowcode.
The Set Address macro must be called before you call the Start macro.
Let us know how you get on.
Re: LCD (i2c) component. is this possible?
Hi Benj,
I use a Flowcode 5, here I have a LCD I2C, cant find an address.
Maybe u have component file of LCD I2C to Flowcode 5.
I tried to program on Flowcode 6 but it works (show on LCD) on simulation, on hardware doesn't work.
Please help
I use a Flowcode 5, here I have a LCD I2C, cant find an address.
Maybe u have component file of LCD I2C to Flowcode 5.
I tried to program on Flowcode 6 but it works (show on LCD) on simulation, on hardware doesn't work.
Please help
- Attachments
-
- Lcd_i2c_on flowcode6.fcfx
- my proj
- (5.17 KiB) Downloaded 362 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: LCD (i2c) component. is this possible?
Hello,
Have you tried other addresses than 27?
Have you tried other addresses than 27?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel