Arduino/C Library Integration

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
manuel_bayer
Posts: 10
Joined: Wed Oct 16, 2013 1:55 am
Contact:

Arduino/C Library Integration

Post by manuel_bayer »

Hello,

is it possible to integrate my arduino libraries into my arduino flowcode project or to create a component out of my arduino library?
I want to integrate the ds1307 library into flowcode for example, if yes, can someone explain me how to do that?
I read this article http://matrixmultimedia.com/blog/?p=146, but i dont know how to turn complex libraries into my project.



I would be happy to get some help.

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: Arduino/C Library Integration

Post by Benj »

Hello,

Do you know what format the Arduino libraries are in as I've never really used their software?

If they are in native C then shouldn't be an issue. If they are precompiled then might be more tricky but still probably do-able by editing the link script.

Either way yes you should be able to create components to wrap around the existing libraries. Only issue will be that the components will only work for AVR or maybe only Arduino based targets.

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: Arduino/C Library Integration

Post by JonnyW »

Hi.

There is a blog post here: http://matrixmultimedia.com/blog/?p=146

This details how to get an existing C routine 9or library call) defined in a Flowcode component. This wouldprobably be the start of this,if you have a header file with the routines you want in it.

Jonny

Post Reply