Changes

Jump to navigation Jump to search
m
no edit summary
Line 44: Line 44:     
===Introduction to coding===
 
===Introduction to coding===
The process of programming includes designing and executing code in an integrated development environment, otherwise known as an IDE. Many different IDEs exist and are adopted for different usages, and allow programs to edit, debug, and execute (or compile) their code. In order to program an arduino, one must have the Arduino IDE downloaded, which can be accessed from here: <nowiki>https://www.arduino.cc/en/software</nowiki>. The arduino IDE provides users with a programming editor as well as a way to easily upload and compile programs onto the arduino board. Programmes in the arduino IDE are called sketches, and are normally saved with the .ino extension. The language used to programme the arduino board is based on the C++ language, which is a general use Object Oriented language. Like any common language, in order to start coding, one must be aware of the grammar rules and vocabulary that is used. An important word that will be often encountered is a “function”, which is a block of code that takes in an input, processes the input, then returns an output.  
+
The process of programming includes designing and executing code in an integrated development environment, otherwise known as an IDE. Many different IDEs exist and are adopted for different usages, and allow programs to edit, debug, and execute (or compile) their code. In order to program an Arduino, one must have the Arduino IDE downloaded, which can be accessed from here: <nowiki>https://www.arduino.cc/en/software</nowiki>. The Arduino IDE provides users with a programming editor as well as a way to easily upload and compile programs onto the Arduino board. Programs in the Arduino IDE are called sketches, and are normally saved with the .ino extension. The language used to program the Arduino board is based on the C++ language, which is a general use Object Oriented language. Like any common language, in order to start coding, one must be aware of the grammar rules and vocabulary that is used. An important word that will be often encountered is a “function”, which is a block of code that takes in an input, processes the input, then returns an output.  
    
Some other basic considerations:
 
Some other basic considerations:
Line 65: Line 65:  
|This character ends a program statement and lets the compiler know ‘the end of the current line/statement’
 
|This character ends a program statement and lets the compiler know ‘the end of the current line/statement’
 
|}
 
|}
It is also important to be aware that the arduino editor is case sensitive, meaning that the words “DOOR” and “Door” are not understood to be the same word by the compiler. Furthermore, to make writing and editing code more friendly, the arduino IDE will color code important functions, comments, etc. This will be seen later in this section.  
+
It is also important to be aware that the Arduino editor is case sensitive, meaning that the words “DOOR” and “Door” are not understood to be the same word by the compiler. Furthermore, to make writing and editing code more friendly, the Arduino IDE will color code important functions, comments, etc. This will be seen later in this section.  
    
===Variables===
 
===Variables===
Variables allow  information in programmes to be stored or changed within the code. In order to create a variable within your program, it must be declared. To declare a variable, the coder has to write the type of variable to be declared first. Different types exist, most commonly used are:
+
Variables allow  information in programmers to be stored or changed within the code. In order to create a variable within your program, it must be declared. To declare a variable, the coder has to write the type of variable to be declared first. Different types exist, most commonly used are:
 
{| class="wikitable"
 
{| class="wikitable"
 
|+Table 3: Summary of commonly used variable types
 
|+Table 3: Summary of commonly used variable types
MakerRepo Staff, makerrepo-staff
27

edits

Navigation menu