System Functions
System.Print(text) - Prints the value of the argument to the console on the same line
text: String or variableSystem.Println(text) - Prints the value of the argument to the console then moves to the next line
text: String or variableSystem.Reset(loader) - Resets the board
loader: 0 = system reset, 1 = reset and stay in loader modeSystem.GetTickMilliseconds() - Read system ticks in milliseconds
System.GetTickMicroseconds() - Read system ticks microseconds
System.Wait(duration) - Holds program from running
duration: Duration in millisecondsSystem.Version - Returns the current firmware version
The last character returned in Version is boardBoard 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)