Page 1 of 1
include libraries from Arduino?
Posted: Mon Jan 29, 2024 5:00 am
by dds.m.blal
Hallo everyone
Can I include libraries from Arduino?
Loke this
https://github.com/PaulStoffregen/TimerOne
Re: include libraries from Arduino?
Posted: Tue Jan 30, 2024 10:11 am
by chipfryer27
Hi
Libraries can indeed be included although I've only done so with a Pico. Once you have downloaded your library(s)
In Project Options tick the box "Use Supplementary Code" then click on "Supplementary Code"
In "Definitions and function declarations" add the path to your library(s).
You will need to use C-Code icons to refer to whatever functionality your library(s) provides, but I'm probably not the best to advise on using "C"
Regards
Re: include libraries from Arduino?
Posted: Wed Jan 31, 2024 4:50 am
by viktor_au
I can only suggest to study the library, change it and include it as Flowcode macro.
Yes, it takes time, however you can cut down a lot of code.
If you study a datasheet you can use the library as a reference point to create one or more macros in FC8.
Please take it as a suggestion.