Skip to main content
Code formatting.
Source Link
Edgar Bonet
  • 45.2k
  • 4
  • 42
  • 81

I am using the Arduino Nano every. Take this example where I am measuring two things A and B.

Loop{// this loop runs once every second


//Read A,B

//Change something using analogueWrite which would effect A,B values

//Read A,B


}
Loop{// this loop runs once every second
    //Read A,B
    //Change something using analogueWrite which would effect A,B values
    //Read A,B
}

Would the analogueWriteanalogueWrite values have changed fast enough such that the third line would read the new and changed A,B values?

I am using the Arduino Nano every. Take this example where I am measuring two things A and B.

Loop{// this loop runs once every second


//Read A,B

//Change something using analogueWrite which would effect A,B values

//Read A,B


}

Would the analogueWrite values have changed fast enough such that the third line would read the new and changed A,B values?

I am using the Arduino Nano every. Take this example where I am measuring two things A and B.

Loop{// this loop runs once every second
    //Read A,B
    //Change something using analogueWrite which would effect A,B values
    //Read A,B
}

Would the analogueWrite values have changed fast enough such that the third line would read the new and changed A,B values?

I am using the Arduino Nano every. Take this example where I am measuring two things A and B.

Loop{// this loop runs once every second

//Read A,B

//Change something using analogueWrite which would effect A,B values

//Read A,B

}

Loop{// this loop runs once every second


//Read A,B

//Change something using analogueWrite which would effect A,B values

//Read A,B


}

Would the analogueWrite values have changed fast enough such that the third line would read the new and changed A,B values?

I am using the Arduino Nano every. Take this example where I am measuring two things A and B.

Loop{// this loop runs once every second

//Read A,B

//Change something using analogueWrite which would effect A,B values

//Read A,B

}

Would the analogueWrite values have changed fast enough such that the third line would read the new and changed A,B values?

I am using the Arduino Nano every. Take this example where I am measuring two things A and B.

Loop{// this loop runs once every second


//Read A,B

//Change something using analogueWrite which would effect A,B values

//Read A,B


}

Would the analogueWrite values have changed fast enough such that the third line would read the new and changed A,B values?

Source Link
fred
  • 101

How fast does the Arduino execute code?

I am using the Arduino Nano every. Take this example where I am measuring two things A and B.

Loop{// this loop runs once every second

//Read A,B

//Change something using analogueWrite which would effect A,B values

//Read A,B

}

Would the analogueWrite values have changed fast enough such that the third line would read the new and changed A,B values?