1. Editors for the senseBox
A quick overview of the differten editors for the senseBox.
First steps with your senseBox and the Arduino IDE
Before you can get started, you need to install the Arduino IDE. You can find out how this works here
When you open the IDE, you will immediately see a large white area where you will write your program. In the black area below you will see status and error messages. It is always worth taking a look at these messages when errors occur.
Finally you should have a look at the small buttons above the white area.
The checkmark and arrow are the two most important symbols for you: With the check mark you can have your program checked for typing errors, and with the arrow you transfer your program to the senseBox MCU.
The other three symbols - starting with the small sheet on the far left - stand for creating a new program, opening a saved one and saving your written program.
An Arduino program (also known as a “sketch”) has a very simple structure consisting of two main components. These two required functions contain blocks of instructions that describe the program flow:
arduino
void setup(){
// Statement
}
void loop(){
// Statement
}
`
The ‘setup’ function is only executed once when the program is started. In the ‘loop’ function, however, all statements are repeated in an endless loop. Both functions are mandatory for successfully compiling and executing the program. “Compiling” means translating the program into machine code that can be understood by the Arduino processor; the Arduino IDE does this for us.
A double slash (`//’) is used to add comments to the program code. It is always important to comment his program code so that others can understand what happens at a certain point.
A quick overview of the differten editors for the senseBox.
Installation of the Arduino IDE
Installation of the senseBoxMCU Board-Support-Package
Programming the senseBox in the Arduino IDE