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

auto led = JLed(ledPin).Blink(1, 1000).Forever(); doesn't does not blink regularly. #36

Closed
avandalen opened this issue Nov 11, 2019 · 4 comments
Labels

Comments

@avandalen
Copy link

What can you program well! I am overwhelmed with this library...
just:
auto led = JLed(ledPin).Blink(1, 1000).Forever(); doesn't does not blink regularly.
auto led = JLed(ledPin).Blink(2, 1000).Forever(); is okey

@jandelgado
Copy link
Owner

Blink(1,1000) means to turn the LED on for 1ms and to turn it off for 1000ms = 1 second afterwards. I did not test it, but I doubt that this 1ms "flash" will be visible to the human eye.

What do you exactly expect?

@avandalen
Copy link
Author

avandalen commented Nov 16, 2019 via email

@jandelgado
Copy link
Owner

jandelgado commented Nov 16, 2019

So I was curious to see if there might be a bug or some unexpected behaviour. I connected a LED to an Arduino nano and checked with an Oscilloscope if output is as expected. Luckily it is:

  • Blink(1,1000)
    grafik

  • Blink(2,1000)
    grafik

  • Both effects have a period of approx 1000ms:
    grafik

Everythin works as expected, I do not see an issue. Can we close the issue?
br Jan

@avandalen
Copy link
Author

avandalen commented Nov 17, 2019 via email

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

No branches or pull requests

2 participants