Page 1 of 1

Arduino code TO flowcode 7

Posted: Wed Jun 28, 2017 3:45 pm
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

Re: Arduino code TO flowcode 7

Posted: Wed Jun 28, 2017 5:20 pm
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.

Re: Arduino code TO flowcode 7

Posted: Wed Jun 28, 2017 6:17 pm
by achillis1
Hello Ben,
Thanks for the reply.
what do you mean port the code into Flowcode?

Thank you

Re: Arduino code TO flowcode 7

Posted: Thu Jun 29, 2017 10:18 am
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.

Re: Arduino code TO flowcode 7

Posted: Mon Aug 28, 2017 2:54 pm
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