Change this:
Serial.println(1000000*60/(cur_t-t));//print the rpmto this:RealRPM = (1000000*60/(cur_t-t));//save the rpm
1 Like
Change this:
Serial.println(1000000*60/(cur_t-t));//print the rpmto this:RealRPM = (1000000*60/(cur_t-t));//save the rpm