Articles Posted by the Author:

  • String

    String

    Description The String class allows you to use and manipulate strings of text in more complex ways than character arrays do. You can concatenate Strings, append to them, search for and replace substrings, and more. It takes more memory than a simple character array, but it is also more useful. For reference, character arrays are […]


  • string

    string

    Description Text strings can be represented in two ways. you can use the String object, or you can make a string out of an array of type char and null-terminate it. This page described the latter method. For more details on the String object, which gives you more functionality at the cost of more memory, […]


  • double

    double

    Description Double precision floating point number. On the 86Duino, this occupies 8 bytes (64 bit) and can be as large as 1.79769E+308 and as low as -1.79769E+308. You may refer to the IEEE 754 standard for more information of floating-point numbers. Example double mydouble; double sensorCalbrate = 1.117; Syntax double var = val; var – […]


  • float

    float

    Description Datatype for floating-point numbers, a number that has a decimal point. Floating-point numbers are often used to approximate analog and continuous values because they have greater resolution than integers. Floating-point numbers can be as large as 3.4028235E+38 and as low as -3.4028235E+38. They are stored as 32 bits (4 bytes) of information. Floats have […]


  • short

    short

    Description A short is a 16-bit data-type. On the 86Duino, a short stores a 16-bit (2-byte) value. This yields a range of -32,768 to 32,767 (minimum value of -2^15 and a maximum value of (2^15) – 1). Example short ledPin = 13; Syntax short var = val; var – your short variable name val – […]


  • unsigned long

    unsigned long

    Description Unsigned long variables are extended size variables for number storage, and store 32 bits (4 bytes). Unlike standard longs, unsigned longs won’t store negative numbers, making their range from 0 to 4,294,967,295 (2^32 – 1). Example Syntax unsigned long var = val; var – your unsigned long variable name val – the value you […]


  • long

    long

    Description Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647. If doing math with integers, at least one of the numbers must be followed by an L, forcing it to be a long. See the Integer Constants page for details. Example long speedOfLight = 186000L; […]


  • word

    word

    Description A word stores a 16-bit unsigned number, from 0 to 65535. Same as an unsigned short. Example word w = 10000; See also - byte - 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. Code […]


  • unsigned int

    unsigned int

    Description On the 86Duino, unsigned ints (unsigned integers) are the same as ints in that they store a 4 byte (32-bit) value. Instead of storing negative numbers however they only store positive values, yielding a useful range of 0 to 4,294,967,295 (2^32 – 1). The difference between unsigned ints and (signed) ints, lies in the […]


  • int

    int

    Description Integers are your primary data-type for number storage. On the 86Duino, an int stores a 32-bit (4-byte) value. This yields a range of -2,147,483,648 to 2,147,483,647 (minimum value of -2^31 and a maximum value of (2^31) – 1). int‘s store negative numbers with a technique called 2’s complement math. The highest bit, sometimes referred […]