Articles Posted by the Author:



  • % (modulo)

    % (modulo)

      % (modulo) Description Calculates the remainder when one integer is divided by another. It is useful for keeping a variable within a particular range (e.g. the size of an array). Syntax result = dividend % divisor Parameters dividend: the number to be divided divisor: the number to divide by Returns the remainder Examples x […]






  • = (assignment operator)

    = (assignment operator)

      = assignment operator (single equal sign) Stores the value to the right of the equal sign in the variable to the left of the equal sign. The single equal sign in the C programming language is called the assignment operator. It has a different meaning than in algebra class where it indicated an equation […]


  • #include

    #include

      #include #include is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for Arduino. The main reference page for AVR C libraries (AVR is a reference to the Atmel chips on which the […]


  • #define

    #define

      Define #define is a useful C component that allows the programmer to give a name to a constant value before the program is compiled. Defined constants in arduino don’t take up any program memory space on the chip. The compiler will replace references to these constants with the defined value at compile time. This […]