Announcement

Collapse
No announcement yet.

Placement of genie.DoEvents() in Arduino Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Placement of genie.DoEvents() in Arduino Code

    Hi guys and gals,

    Hopefully a simple question here, in the main loop of my Arduino program, my genie.DoEvents() part is at the very bottom of the program, is this correct? Is it vital on the position of the genie.DoEvents()? Or should it be one of the very first parts to be in the main loop?

    Many thanks,
    Sean

  • #2
    Hi,

    It can be anywhere in the main loop as long as there are no blocking functions like delays() that will hinder its call.
    Best Regards,

    Comment

    Working...
    X