Description Converts a value to the int data type. Syntax int(x) Parameters x: a value of any type Returns int See also - int 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 samples in the reference […]
Description Converts a value to the byte data type. Syntax byte(x) Parameters x: a value of any type Returns byte See also - byte 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 samples in the reference […]
Description Converts a value to the char data type. Syntax char(x) Parameters x: a value of any type Returns char See also - char 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 samples in the reference […]
An array is a collection of variables that are accessed with an index number. Arrays in the C programming language, on which 86Duino is based, can be complicated, but using simple arrays is relatively straightforward. Creating (Declaring) an Array All of the methods below are valid ways to create (declare) an array. You can declare […]
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 […]
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, […]
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 – […]
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 […]
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 – […]
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 […]