Articles Posted in the " " Category

  • Variables

    Variables

    A variable is a place to store a piece of data. It has a name, a value, and a type. For example, this statement (called a declaration):    int pin = 13; creates a variable whose name is pin, whose value is 13, and whose type is int. Later on in the program, you can […]


  • Sketch

    Sketch

    In this tutorial, you’ll learn how each part of that sketch works. Sketch A sketch is the name that Arduino and 86Duino use for a program. It’s the unit of code that is uploaded to and run on an Arduino or 86Duino board. Comments The first few lines of the Blink sketch are a comment: […]


  • == operator

    == operator

    Description Compares two strings for equality. The comparison is case-sensitive, meaning the String “hello” is not equal to the String “HELLO”. Functionally the same as String.equals(). Syntax string1 == string2 Parameters string, string2: variables of type String Returns true: if string1 equals string2 false: otherwise Example - StringComparisonOperators See also - String - equals() - […]


  • + operator

    + operator

    Description Combines, or concatenates two strings into one new String. The second string is appended to the first, and the result is placed in a new String. Works the same as String.concat(). Syntax string3 = string1 + string 2; string3 += string2; Parameters string, string2, string3: variables of type String Returns new String that is […]


  • [] (element access)

    [] (element access)

    Description Allows you access to the individual characters of a string. Syntax char thisChar = string1[n] Parameters thisChar (char) – a character variable string1 – a String variable n (int) – a numeric variable Returns the nth char of the string. Same as charAt(). Example - StringCharacters See also - String - charAt() Language Reference […]


  • trim()

    trim()

    Description Get a version of the String with any leading and trailing whitespace removed. trim() modifies the string in place rather than returning a new one. Syntax string.trim() Parameters string : a variable of type String Returns none Example - StringLengthTrim See also - String Language Reference Home The text of the 86Duino reference is […]


  • toUpperCase()

    toUpperCase()

    Description Get an upper-case version of a String. toUpperCase() modifies the string in place rather than returning a new one. Syntax string.toUpperCase() Parameters string : a variable of type String Returns none Example - StringCaseChanges See also - String - toLowerCase() Language Reference Home The text of the 86Duino reference is a modification of the […]


  • toLowerCase()

    toLowerCase()

    Description Get a lower-case version of a String. toLowerCase() modifies the string in place rather than returning a new one. Syntax string.toLowerCase() Parameters string : a variable of type String Returns none Example - StringCaseChanges See also - String - toUpperCase() Language Reference Home The text of the 86Duino reference is a modification of the […]


  • toInt()

    toInt()

    Description Converts a valid String to an integer. The input string should start with an integral number. If the string contains non-integral numbers, the function will stop performing the conversion. Syntax string.toInt() Parameters string : a variable of type String Returns long (If no valid conversion could be performed because the string doesn’t start with […]


  • toCharArray()

    toCharArray()

    Description Copies the string’s characters to the supplied buffer. Syntax string.toCharArray(buf, len) Parameters string : a variable of type String buf : the buffer to copy the characters into (char []) len : the size of the buffer (unsigned int) Returns None See also - String - getBytes() Language Reference Home The text of the […]