Table of Contents

System Functions

  • Cos(number) - Returns the cosine of the argument

  • Echo(enable)
    enable: 0 = Enable echo , 1 = Disable echo

  • GetCh() - reads character input, in ASCII format. Return -1 when no character detected

  • GetNum() - reads number input, can be used with IsNAN() to determine if value is a number

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

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

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

  • Rnd(max) - Generates random number
    max: maximum value of random number
    Returns: returns random number between 0 and value of argument max

  • Sin(number) - Returns the sine value of the argument

  • Sqrt(number) - Returns the square root of the argument

  • Str(number) - Returns a string from a variable, this is used for functions that require a string.

  • Fmt(....) - Takes multiple comma separated arguments that can be either variables or strings.
    Returns: A combined string

  • Tan(number) - Returns the tangent of the argument

  • TickMs() - Read system ticks in milliseconds

  • TickUs() - Read system ticks microseconds

  • Trunc(number) - Returns the truncated value of the argument

  • Version - Returns the current firmware version of DUE
    The last character returned in Version is board

    Board Character
    Pulse P
    Edge E
    Flea F
    Pico I
  • Wait(duration) - Holds program from running
    duration: Duration in milliseconds