From 7beabf942df536895d8d226cb1a534183b49535f Mon Sep 17 00:00:00 2001 From: dmpossa <108035286+dmpossa@users.noreply.github.com> Date: Wed, 8 Jan 2025 00:11:55 -0300 Subject: [PATCH 1/4] =?UTF-8?q?update=20blinking=20rate=20to=20=CF=80=20se?= =?UTF-8?q?conds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit π seconds will give a perfect blink rate and you can eat --- blink.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blink.ino b/blink.ino index 54d7e426..171ab734 100644 --- a/blink.ino +++ b/blink.ino @@ -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(3142); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW - delay(2000); // wait for a second + delay(3142); // wait for a second } From ce000aa9f289debdc501b843e763563a9d70ea17 Mon Sep 17 00:00:00 2001 From: dmpossa <108035286+dmpossa@users.noreply.github.com> Date: Wed, 8 Jan 2025 00:34:02 -0300 Subject: [PATCH 2/4] update blink time to 98 days MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Considering a 32-bits arduino, that's the maximum blinking time. Good night and good luck tester 😁. --- blink.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blink.ino b/blink.ino index 171ab734..c66a2922 100644 --- a/blink.ino +++ b/blink.ino @@ -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(3142); // wait for a second + delay((4294967295); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW - delay(3142); // wait for a second + delay((4294967295); // wait for a second } From f1e0525bfa9126c98d82df674e4bb288bb39f707 Mon Sep 17 00:00:00 2001 From: dmpossa <108035286+dmpossa@users.noreply.github.com> Date: Wed, 8 Jan 2025 00:37:42 -0300 Subject: [PATCH 3/4] remove extra parentheses --- blink.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blink.ino b/blink.ino index c66a2922..91ea0fa3 100644 --- a/blink.ino +++ b/blink.ino @@ -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((4294967295); // wait for a second + delay(4294967295); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW - delay((4294967295); // wait for a second + delay(4294967295); // wait for a second } From 8204152b8c91129086497d7be066c432c9c45978 Mon Sep 17 00:00:00 2001 From: dmpossa <108035286+dmpossa@users.noreply.github.com> Date: Wed, 8 Jan 2025 00:41:59 -0300 Subject: [PATCH 4/4] fix comments --- blink.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blink.ino b/blink.ino index 91ea0fa3..e582f6c9 100644 --- a/blink.ino +++ b/blink.ino @@ -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(4294967295); // wait for a second + delay(4294967295); // wait for 4294967 seconds digitalWrite(led, LOW); // turn the LED off by making the voltage LOW - delay(4294967295); // wait for a second + delay(4294967295); // wait for 4294967 seconds }