Table of Contents

System Functions


  • System.Print(text) - Prints the value of the argument to the console on the same line
    text: String or variable

  • System.Println(text) - Prints the value of the argument to the console then moves to the next line
    text: String or variable

  • System.Reset(loader) - Resets the board
    loader: 0 = system reset, 1 = reset and stay in loader mode

  • System.GetTickMilliseconds() - Read system ticks in milliseconds

  • System.GetTickMicroseconds() - Read system ticks microseconds

  • System.Wait(duration) - Holds program from running
    duration: Duration in milliseconds

  • System.Version - Returns the current firmware version
    The last character returned in Version is board

    Board Character
    DUElink Spider D
    Pulse P
    Edge E
    Flea F
    Pico I

Example:

# print "Hello world"
duelink.System.Print("Hello world")

#  print "Hello world" and add new line
duelink.System.Println("Hello world")

#  Check version number
print(duelink.System.Version)

#  Get device tick in millisecond
print(duelink.System.GetTickMilliseconds())

#  Get device tick in microsecond
print(duelink.System.GetTickMicroseconds())

#  Delay 1 second
duelink.System.Wait(1000)

#  Reset the device
duelink.System.Reset(0)