Can I use this library on another microcontroller? #4
FrancescoCrevatin
started this conversation in
General
Replies: 3 comments 2 replies
-
This library isn't directly compatible with C, but here's a quick conversion: CSolarCalculator (zip) Usage is slightly different:
Notice the function names and |
Beta Was this translation helpful? Give feedback.
2 replies
-
And if you wanted to keep the same syntax, I think the C overloading technique described here could be used. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you @jpb10. I'll try next days. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi jpb10,
first of all: great job.
Meanwhile, I want to tell you that I used the library for an Arduino project and everything worked fine, only I found some problems with the "automatic" time calculation using: setTime (toUtc (compileTime ())) ;, so I used a clock (RTC) that gives time to the other function you created: setTime (hr, min, sec, day, mo, yr).
But I wanted to ask you, since I'm not very grasped in C programming and using libraries: Can I use the same library to write a program on another microcontroller? That is, I would need the same library in C, and it seems to me that it is in C, but I wanted to ask you for confirmation if I could use the exact same library on a microcontroller other than the Arduino family.
Thanks again for your availability.
Beta Was this translation helpful? Give feedback.
All reactions