Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. wait microseconds available?

wait microseconds available?

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 600 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • skywatchS Offline
    skywatchS Offline
    skywatch
    wrote on last edited by
    #1

    I see from the API that wait() is preferred over delay(). But what about delayMicroseconds? Is it OK to use 'delayMicroseconds' for very short durations or is there a 'waitMicroseconds' function that is supposed to be used?

    Nca78N 1 Reply Last reply
    0
    • skywatchS skywatch

      I see from the API that wait() is preferred over delay(). But what about delayMicroseconds? Is it OK to use 'delayMicroseconds' for very short durations or is there a 'waitMicroseconds' function that is supposed to be used?

      Nca78N Offline
      Nca78N Offline
      Nca78
      Hardware Contributor
      wrote on last edited by
      #2

      @skywatch wait() is prefered because it will process MySensors library tasks (including checking for incoming messages) instead of blocking all the processing.
      For very short tasks it's fine to use delayMicrosecond(). A "wait" version would make no sense as processing of MySensors would probably take more time than the duration you ask.

      1 Reply Last reply
      2
      • skywatchS Offline
        skywatchS Offline
        skywatch
        wrote on last edited by
        #3

        @Nca78 That makes perfect sense! - Thanks for the clarification.....Onwards and upwards! ;)

        1 Reply Last reply
        1
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        27

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular