SoftPWM function HELP for Nube

I downloaded the SoftPWM library and modified the code for my own use, only to find that the SoftPWM function FADE TIME is only 4 SECONDS. The ON time and OFF time work OK, but need to make the FADE time 10 minutes. Anyone have a simple method? Thanks, MAC

Here is the INO CODE:
/*
SoftPWMB FileName:FM_Fading_SoftPWMB.ino
Shows how to fade an LED using the SoftPWM function.

Test Circuit:
LED attached from digital pin 9 to ground.

ShortComings: Only 4 second Up/Down times!
*/

#include <SoftPWM.h>

void setup()
{
SoftPWMBegin();
SoftPWMSet(9, 0);
//fadeuptime & fadedowntime Range: 0 to 4000 only
//First value is pin#
//Second value FadeUp Time 4000ms is 4 seconds
//Third value FadeDown Time 4000ms is 4 seconds
SoftPWMSetFadeTime(9, 4000, 4000);
//This gives 4sec up and 4sec down
}

void loop()
{
SoftPWMSet(9, 255);

//ON TIME duration ms - eg 36000ms is 36seconds
//10hrs is 36,000,000ms
delay(36000000);
SoftPWMSet(9, 0);
//OFF TIME duration ms - eg 48600ms is 48.6seconds
//13.88666hrs is 49,992,000 (about 13hrs & 53.2mins)
//Note: 24 Hrs equals 86,000,000 miliseconds
delay(49992000);
}

You've set the fadetime to 4 seconds. That sounds like what it's doing.

That is my problem. When using the SoftPWM Library, you can only Fade 4000ms (4 seconds).
Here is the barebone sketch:

#include <SoftPWM.h>
void setup()
{
SoftPWMBegin();
SoftPWMSet(9, 0);
SoftPWMSetFadeTime(9, 4000, 4000); //Only 4 seconds!
}
void loop()
{
SoftPWMSet(9, 255);
delay(36000000); //10hrs
SoftPWMSet(9, 0);
delay(49992000); //13.88666hrs
}

Thanks, Mac
PS: I was born at Maple Creek, Sask.

When using the SoftPWM Library, you can only Fade 4000ms (4 seconds).

Why do you think that this is true? Have you tried changing the values in:

  SoftPWMSetFadeTime(9, 4000, 4000);  //Only 4 seconds!

The code does not contain anything requiring the fade up and fade down times to be the same or less than 4 seconds.

Please use code tags.

Read this before posting a programming question