Problem with sunrise sunset effect

Share you PDE file with our community
Post Reply
sebimme
Posts: 26
Joined: Sat Jan 07, 2012 12:56 am

Problem with sunrise sunset effect

Post 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
Attachments
ReefAngel_Features.h
(20.62 KiB) Downloaded 426 times
error.jpg
error.jpg (136.12 KiB) Viewed 3968 times
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Problem with sunrise sunset effect

Post 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.
sebimme
Posts: 26
Joined: Sat Jan 07, 2012 12:56 am

Re: Problem with sunrise sunset effect

Post 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
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Problem with sunrise sunset effect

Post 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
Post Reply