Author Topic: microsecond delay  (Read 66 times)

Michael Anderson

  • RFduino Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
microsecond delay
« on: August 04, 2017, 10:46:23 AM »
In case anyone is looking to delay shorter than the millisecond delay() function,
It was quick to include nrf_delay.h ( along with its #includes all taken from nordics nRF5_SDK_12.3.0) into my Simblee sketch and use the
void nrf_delay_us(uint32_t number_of_us) function.

I tested it out on 4us, 50us, and 100us and it works (few us added from digitalWrite() calls)

RFD_Nelson

  • RFduino Team
  • *****
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: microsecond delay
« Reply #1 on: August 07, 2017, 07:29:21 AM »
Hi Michael,

Thanks for this post. We've already added this functionality in the Simblee libraries with the function delayMicroseconds().

Thanks,

Nelson

 

anything