Articles Posted in the " " Category

  • bitWrite()

    bitWrite()

    Description Writes a bit of a numeric variable. Syntax bitWrite(x, n, b) Parameters x: the numeric variable to which to write n: which bit of the number to write, starting at 0 for the least-significant (rightmost) bit b: the value to write to the bit (0 or 1) Returns none See also - bit() - […]


  • bitRead()

    bitRead()

    Description Reads a bit of a number. Syntax bitRead(x, n) Parameters x: the number from which to read n: which bit to read, starting at 0 for the least-significant (rightmost) bit Returns the value of the bit (0 or 1). See also - bit() - bitWrite() - bitSet() - bitClear() Language Reference Home The text […]


  • highByte()

    highByte()

    Description Extracts the high-order (leftmost) byte of a word (or the second lowest byte of a larger data type). Syntax highByte(x) Parameters x: a value of any type Returns byte See also - lowByte() - word() Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed […]


  • lowByte()

    lowByte()

    Description Extracts the low-order (rightmost) byte of a variable (e.g. a word). Syntax lowByte(x) Parameters x: a value of any type Returns byte See also - highByte() - word() Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. […]


  • random()

    random()

    Description The random function generates pseudo-random numbers. Syntax random(max) random(min, max) Parameters min – lower bound of the random value, inclusive (optional) max – upper bound of the random value, exclusive Returns a random number between min and max-1 (long) Note If it is important for a sequence of values generated by random() to differ, […]


  • randomSeed(seed)

    randomSeed(seed)

    Description randomSeed() initializes the pseudo-random number generator, causing it to start at an arbitrary point in its random sequence. This sequence, while very long, and random, is always the same. If it is important for a sequence of values generated by random() to differ, on subsequent executions of a sketch, use randomSeed() to initialize the […]


  • sin(rad)

    sin(rad)

    Description Calculates the sine of an angle (in radians). The result will be between -1.0 and 1.0. Parameters rad: the angle in radians (double) Returns the sine of the angle (double) See also - cos() - tan() - double Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, […]


  • cos(rad)

    cos(rad)

    Description Calculates the cos of an angle (in radians). The result will be between -1.0 and 1.0. Parameters rad: the angle in radians (double) Returns The cos of the angle (double) See also - sin() - tan() - double Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, […]


  • tan(rad)

    tan(rad)

    Description Calculates the tangent of an angle (in radians). The result will be between negative infinity and infinity. Parameters rad: the angle in radians (double) Returns The tangent of the angle (double) See also - sin() - cos() - double Language Reference Home The text of the 86Duino reference is a modification of the Arduino […]


  • abs(x)

    abs(x)

    Description Computes the absolute value of a number. Parameters x: the number Returns x: if x is greater than or equal to 0. -x: if x is less than 0. Warning Because of the way the abs() function is implemented, avoid using other functions inside the brackets, it may lead to incorrect results. Language Reference […]