Description A byte stores an 8-bit unsigned number, from 0 to 255. Example byte b = B10010; // "B" is the binary formatter (B10010 = 18 decimal) See also - word - byte() - Variable Declaration Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed […]
Description An unsigned data type that occupies 1 byte of memory. Same as the byte datatype. The unsigned char datatype encodes numbers from 0 to 255. For consistency of 86Duino programming style, the byte data type is to be preferred. Example unsigned char myChar = 240; See also - byte - int - array - […]
Description A data type that takes up 1 byte of memory that stores a character value. Character literals are written in single quotes, like this: ‘A’ (for multiple characters – strings – use double quotes: “ABC”). Characters are stored as numbers however. You can see the specific encoding in the ASCII chart. This means that […]
A boolean holds one of two values, true or false. (Each boolean variable occupies one byte of memory.) Example See also - constants - boolean operators - Variable Declaration 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. […]
The void keyword is used only in function declarations. It indicates that the function is expected to return no information to the function from which it was called. Example See also - function declaration Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a […]
Similar to integer constants, floating point constants are used to make code more readable. Floating point constants are swapped at compile time for the value to which the expression evaluates. Examples: n = .005; Floating point constants can also be expressed in a variety of scientific notation. ‘E’ and ‘e’ are both accepted as valid […]
Integer constants are numbers used directly in a sketch, like 123. By default, these numbers are treated as int‘s but you can change this with the U and L modifiers (see below). Normally, integer constants are treated as base 10 (decimal) integers, but special notation (formatters) may be used to enter numbers in other bases. […]
Constants are predefined variables in the 86Duino language. They are used to make the programs easier to read. We classify constants in groups. Defining Logical Levels, true and false (Boolean Constants) There are two constants used to represent truth and falsity in the 86Duino language: true, and false. false false is the easier of the […]
Description The compound bitwise OR operator (|=) is often used with a variable and a constant to “set” (set to 1) particular bits in a variable. Syntax x |= y; // equivalent to x = x | y; Parameters x: a char, int or long variable y: an integer constant or char, int, or long […]
Description The compound bitwise AND operator (&=) is often used with a variable and a constant to force particular bits in a variable to the LOW state (to 0). This is often referred to in programming guides as “clearing” or “resetting” bits. Syntax x &= y; // equivalent to x = x & y; Parameters […]