Table of Contents

LED


This function is used to take control of the on-board LED. It is non-blocking so it can be used as a status indicator for your programs while they run.

  • Led.Set(highPeriod, lowPeriod, count)
    highPeriod: The duration in milliseconds the LED is on.
    lowPeriod: The duration in milliseconds the LED is off.
    count: The number of times the LED will blink.
duelink.Led.Set(1000, 1000, 10)
Tip

Setting count to -1 will blink the LED forever, and 0 will turn off the LED.