Page 1 of 1

Compiler error when using GroveI2C component

Posted: Thu Feb 08, 2018 7:58 am
by EFB
Hello,

I am new at this forum and I have a question.
I am building a project for monitoring a hearing aids.
Some data produced is displayed on a Grove I2C display.
Before the upgrade to 7.3 the only problem I found in the Grove I2C component was that the init string (start) was not working (for me).
I worked around that by a separate routine.
But now after the latest update it is not possible to compile anymore!
Error message are (a lot of them):
FCP_SET(FCP_NULL, 0); ^ (171) wrong number of preprocessor macro arguments for "FCP_SET" (2 instead of 5) (warning) FCP_SET(FCP_NULL, 0);
Flowcode1.c: FCD_04071_LCD__RawSend()
FCP_SET_FCP_NULL(0, , , );^ (361) function declared implicit int (warning)
^ (195) expression syntax
I have tried the latest update file “FC7_Latest_Files_18-01-17” but no luck.
Did someone encounter this problem?
Or even better does someone have a solution :) ?

Thanks,

Evert

Re: Compiler error when using GroveI2C component

Posted: Thu Feb 08, 2018 11:04 am
by Benj
Hello Evert,

Sorry for the delay. Here's a quick go at solving the compile error for you.

Simply copy to your "Flowcode 7/components" directory and restart Flowcode.
lcd_Grove_I2C.fcpx
(25.2 KiB) Downloaded 245 times
Let us know how you get on. Also do you want me to look at the initialise if this isn't working correctly. Can you show me a project where you initialise it by different means and I will see if I can patch this into the component for you.

Re: Compiler error when using GroveI2C component

Posted: Thu Feb 08, 2018 11:13 am
by EFB
Ben,

Thanks for the quick work.

Works like a charm.

regards,

Evert

Re: Compiler error when using GroveI2C component

Posted: Fri Feb 09, 2018 8:28 am
by EFB
Hi Ben.

Here are the initialize routines I am using.
The delays are not optimized but it works for me.
Have a look if you can implement these settings into the component.

Thanks.

Evert

to modify system to drive lcd 1602A instate of lcd-eb005

Posted: Wed Feb 28, 2018 3:04 pm
by Nasim Khaliqhey
I have tried to get lcd 1602A to be recognised by using Macros ,as attached doc snap shot
Iam sending, to go forward the setup Macro can not be found in other icons
lcd_eb005 display can not be found to try , is there any deference between lcd_eb500 & lcd 16 02A
the reason I am asking this question is that the data transfered perfectly well


2018-02-28.png