The use of "" or <> depends on where you put the library.
I guess in your case the <> is appropriate.
Scope should not be a problem here if its included properly.
Can you try again now. #included was incorrect so maybe now that its #include?
Moon rise/set implementation
Ah whoops, the "included" is an error on my part in the post, not in the actual program. It is most certainly include, not included in the ino
I noticed something else, I was using a lower case m rather than M in Moon.h Now when i change it to a capital M
I get a slew of new errors about things inside the library ![]() at least I know it is actually reading the library...i guess...
|
|
Ok interesting,
I was able to knock out many errors by including
in my header, I have no idea why its just something random i found online to try. anyway, now my errors read as follows. All are based around the 'ScheduleTime' function within the library. Strange indeed.
|
|
ScheduleTime is a function in the Time library. Not sure if that's a standard arduino function or exclusive in the RA library. Anyway, you'll need that package. I did some conversion from the original package I found to make it work with RA.
You may also want to try the original as that may be more based on just Arduino standard libs... http://code.google.com/p/stilo/ |
|
Hmmm, after much mullings
I removed
From the code. with the idea that from the looks of it that portion is not actually modifying the rise time and set time values, but rather sending those values elsewhere into your program. and YAY it compiled! Except the rise and set times are incorrect, so maybe that portion of code really does do something. sigh oh well ill figure it out eventually i suppose. That you for all your help =) -Jay |
|
Yeah those times are used during moon_init. Schedule time function returns number of minutes for that time...if you look at the original link it doesn't use that function so it may be in your library.
|
|
So, can you dumb this down for me, please? Am I putting values into somewhere or are they declared somewhere else? And I still need the moon.h file, etc? |
|
You don't need that function anymore. The regular PWMSlope function now works during any timeframe.
|
|
Latest version 1.1.0 compatible
|
|
Hi Lee thanks for sharing, Just a few question hope you can assist me. I am running 2 Rapid dimmable LED lightest, using analog dimming expansion. the light set has 3 channels, 1 channel blue, 1 channel white and 1 channel UV red and green. Currently iam running it to ramp up the different channels at different timing. 1)How can i use this code that you provided to fit into the different channel? 2)what should i do with the Moon.zip files? Pardon my noob questions ![]() |
|
Who is online
Users browsing this forum: No registered users and 2 guests