Arduino code TO flowcode 7

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

Moderator: Benj

Post Reply
User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Arduino code TO flowcode 7

Post by achillis1 »

Hello,

Is there a way to import arduino C++ code into Flowcode 7? If yes, would be possible to compile again that code into an arduino or even PIC controller?

Thank you

Best Regards
Andreas Achilleos

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 code TO flowcode 7

Post by Benj »

Hi Andreas,

No not currently, for the moment you have to take the Arduino code and port it into Flowcode. I have done this for a number of components.

We have thought about allowing Arduino code libraries to work but it's complicated and would probably only work on the pre-defined Arduino compatible hardware.

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Re: Arduino code TO flowcode 7

Post by achillis1 »

Hello Ben,
Thanks for the reply.
what do you mean port the code into Flowcode?

Thank you

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 code TO flowcode 7

Post by Benj »

what do you mean port the code into Flowcode?
Code porting is a term for taking a program and converting it to suit a different compiler or paradigm.

So for an Arduino library I generally go through function to function creating Flowcode macros for each function.

Arduino libraries love to pass pointers around the functions as parameters and returns, these can simply become global variables to make life easier.

User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

Re: Arduino code TO flowcode 7

Post by achillis1 »

Hello Ben,

Do you have an example of how to you port arduino code into flowcode macros; so I can get a clue how to start porting?

Thank you

Post Reply