Page 1 of 1

Problem with sunrise sunset effect

Posted: Sat Jan 07, 2012 1:11 am
by sebimme
Hello Roberto, I read your tutorial on how to install the dawn effect, but in my files "features"I do not find the word "# define PWMExpansionRelay", but "/ / define PWMEXPANSION", I changed upon the latter with the one suggested by you , but when I try to test the code I get the error that you can see the Annex. I have developed libraries 8.5.19, the file also includes features changed. I do not understand what's the problem, help me please

Re: Problem with sunrise sunset effect

Posted: Sat Jan 07, 2012 6:31 am
by binder
There has been a couple slight changes with a few later releases of the libraries. For 0.8.5.19 (and later), you need to change that line to this:

Code: Select all

ReefAngel.PWM.Expansion(a, int(2.55*PWMChannel[a]));
Make note of the . between PWM & Expansion.

That should fix your problem.

Re: Problem with sunrise sunset effect

Posted: Sat Jan 07, 2012 9:09 am
by sebimme
Thanks Now it works. But I have to leave inside the file features "# define PWMEXPANSION" or should I replace it with "# define PWMExpansionRelay"?
you may post the latest version of the file Features

Re: Problem with sunrise sunset effect

Posted: Sat Jan 07, 2012 9:51 am
by binder
I posted this in the other topic you commented on, but I'll still post here too.

The "official" fully documented features file:

https://github.com/curtbinder/ReefAngel ... Features.h