0

I'm trying to let the LED keep blinking while waiting in the "wait_msg()" function. can I achieve this by uasycncio, _thread, or modification on the main loop in the module? And how?

Many thanks.

fishjoe
  • 39
  • 1
  • 5

1 Answers1

1

Try the following:

client.check_msg()
led.toggle()
time.sleep(0.1)
Roman Kiss
  • 7,925
  • 1
  • 8
  • 21