Skip to main content

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?

fred
  • 101