Compiler error when using GroveI2C component

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
EFB
Posts: 7
Joined: Tue Feb 06, 2018 8:02 am
Been thanked: 2 times
Contact:

Compiler error when using GroveI2C component

Post 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

User avatar
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: Compiler error when using GroveI2C component

Post 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 208 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.

EFB
Posts: 7
Joined: Tue Feb 06, 2018 8:02 am
Been thanked: 2 times
Contact:

Re: Compiler error when using GroveI2C component

Post by EFB »

Ben,

Thanks for the quick work.

Works like a charm.

regards,

Evert

EFB
Posts: 7
Joined: Tue Feb 06, 2018 8:02 am
Been thanked: 2 times
Contact:

Re: Compiler error when using GroveI2C component

Post 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
Attachments
Grove_Backlight_Init.fcfx
(8.25 KiB) Downloaded 187 times
Grove_Init.fcfx
(7.48 KiB) Downloaded 187 times

Nasim Khaliqhey
Posts: 90
Joined: Wed Oct 15, 2014 5:20 pm
Has thanked: 1 time
Been thanked: 3 times
Contact:

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

Post 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

Post Reply