Learn the basics of programming using C/C++.
...
Info |
---|
Some languages use what’s called an interpreter. Rather than translating the program one time and create an optimized executable, interpreters translate the program as it is run. Some languages that are aimed at fast prototyping (e.g. Python) prefer this method, as it is faster to try out for a developer. However, since this waste the processing power, arduino Arduino based boards use compiled languages. |
What are C and C++
...
C++ aimed to expand the C language with constructs to increase ease-of-use and organisation for bigger programs. While technically the language used for the arduino Arduino based boards is C++, the constrained environment doesn’t give much place for a lot of features. As such, we won’t be going into details about C++ vs C. However, keep in mind that some techniques won’t be available to you if you use plain C.
How
...
is a CrcDuino programmed?
Programming a micro-controller board - here the CrcDuino - is a fairly repetitive process.
The code is written in, compiled and finally downloaded in the micro-controller using an Integrated Development Environment. Although the CRC Robotics Competition participants are free to use whatever Arduino compatible IDE, we strongly recommend (and only
...
support)
...
the official desktop-based Arduino IDE
...
.
You write your program. These The lines of code are written in using C/C++.
Your IDE then uses a compiler to transform your C/C++ lines of code into micro-controller instructions.
Once your code as been compiled (or verified in the Arduino world), your IDE then allow you to upload these instructions into your micro-controller.
Once the upload is done, your micro-controller (the brain of the 9880 board) reboots and then starts executing your code. It will run whatever is written in the
void setup()
part of your program once, and then it will execute over and over again whatever you wrote in thevoid loop()
part.You repeat step 2 to 5 until your robot does what you want it to do!
...