sandeepmistry / arduino-nRF5

Arduino Core for Nordic Semiconductor nRF5 based boards
Other
873 stars 278 forks source link

Two tweaks to pulseIn() #437

Closed jhmaloney closed 3 years ago

jhmaloney commented 3 years ago

Map the pin number argument to internal pin number using digitalPinToPin() macro Adjust the loop count to microsecond computations (based on empirical timing measurements of actual pulses with an oscilloscope). Tested on both nRF51 and nRF52 boards.