Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXAMPLE NOT WORKING #25

Open
BMBIT-oss opened this issue Nov 28, 2019 · 3 comments
Open

EXAMPLE NOT WORKING #25

BMBIT-oss opened this issue Nov 28, 2019 · 3 comments

Comments

@BMBIT-oss
Copy link

Hi Marvin ,
I'm trying to use your library and start with the example provided , but it doesn't work .
I set the new level from the serial monitor and nothing happens , level always stays @ 255 .
I'm using Arduino IDE 1.8.7
Can you please help me in this matter.
Thank you .

Issue

@BMBIT-oss
Copy link
Author

So I have done some more research and it looks like the example is working on a ESP 8266 , any body knows why is not working on Uno / Nano ? anything to do with the eeprom ?

@klaudiusz223
Copy link

Hi,
Maybe your problem is related to issue #23 ?
Change these lines in the example

const unsigned long upCourseTime = 30 * 1000;
const unsigned long downCourseTime = 45 * 1000;

for example like that

const unsigned long upCourseTime = 30u * 1000;
const unsigned long downCourseTime = 45u * 1000;

After these changes it's working on Mega.

You could also uncomment
#define DEBUG
in Shutters.h to see what's going on.

@BMBIT-oss
Copy link
Author

I have discovered why is not working , It's something to do with the Eeprom .
It works as intended on ESP 8266 , but on Nano , Uno , Mega I had to comment everything related about the ESP 8266 Eeprom (flash) specific settings like :
#ifdef ESP8266
EEPROM.begin(512);
#endif

Maybe somebody has an Idea what going on , but this was the fix , to have it working on non ESP devices .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants