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

Three seconds is better #1456

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

aniketdas-tiger-analytics
Copy link

@aniketdas-tiger-analytics aniketdas-tiger-analytics commented Nov 11, 2024

Studies have shown that 3 seconds is a far better LED delay than 1 second.

https://www.nngroup.com/articles/response-times-3-important-limits/

You should also see #1326

blink.ino Outdated
@@ -18,7 +18,7 @@ void setup() {
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
delay(3000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(2000); // wait for a second
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Schacon, I believe it would be better if the light was off for 4 seconds and on for just 3.

@aniketdas-tiger-analytics
Copy link
Author

aniketdas-tiger-analytics commented Nov 12, 2024

This PR will increase the LED delay. In this code I have modified some part so that light was off for 4 seconds and on for just 3.

  • Write the code
  • Write all the tests
  • Document the code

Copy link
Author

@aniketdas-tiger-analytics aniketdas-tiger-analytics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change delay to 2 seconds and 2 seconds repectively

@aniketdas-tiger-analytics
Copy link
Author

for(int i=0 ; i < 5 ; i++)
{
System.out.println("i is : " + i);
}

@aniketdas-tiger-analytics
Copy link
Author

for i in range(1,20):
    if i%2==0:
        print(i)
    else:
        print("ODD")

@aniketdas-tiger-analytics
Copy link
Author

Whether 'tis Nobler in the mind to suffer
The Sling and Arrows of outrageous Fortune,

How big are these slings and in particular, these arrows?

😂 🐼

@aniketdas-tiger-analytics
Copy link
Author

@aniketdas-tiger-analytics is the one who made those above comments.

@aniketdas-tiger-analytics
Copy link
Author

Hello I am Aniket Das. I am commenting through Github API in a Pull Request which I have raised on my own, 👍

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

Successfully merging this pull request may close these issues.

1 participant