Loading...
Pages: 1 [2]   Go Down
Author Topic: Reaction time Mega R3 extremely slow  (Read 758 times)
0 Members and 1 Guest are viewing this topic.
the land of sun+snow
Offline Offline
Edison Member
*
Karma: 81
Posts: 2131
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

while( 1 ) ;
Logged

Kitchen-Sink Arduino-compatible boards

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 279
Posts: 15314
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

while( 1 ) ;

Warning bug! I suspect you were suggesting I should just while(1) {}

Lefty
Logged

the land of sun+snow
Offline Offline
Edison Member
*
Karma: 81
Posts: 2131
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

.... . .-.. .--.   -- .

while(1); compiles fine.
Logged

Kitchen-Sink Arduino-compatible boards

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 279
Posts: 15314
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

.... . .-.. .--.   -- .

while(1); compiles fine.
That is why a called it a bug not an error, it doesn't end up waiting for any length of time.

Logged

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 219
Posts: 13896
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

1. wait.
2. go to 1.

Code:
while (true)
  delay (1000);
Logged


the land of sun+snow
Offline Offline
Edison Member
*
Karma: 81
Posts: 2131
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

being that it's lefty,
Code:
void setup() {  wait();  }
void loop() { }
void wait() {  while(1) wait(); }
Logged

Kitchen-Sink Arduino-compatible boards

Offline Offline
Newbie
*
Karma: 0
Posts: 11
Every accomplishment starts with the decision to try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I need the code!
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 219
Posts: 13896
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

All your codes are belong to us.
Logged


Pages: 1 [2]   Go Up
Print
 
Jump to: