If you're coming to Arduino from programming in C on other platforms then your skills are directly transferable of course as Arduino programming is C and C++. Here's our notes on issues to consider: (Yes an Arduino Project is a sketch – sorry but we call such things projects so you'll find we refer to […]
Open the Sketch Select the projects tab (if there is more than 1 project files file tab) Using the drop down arrow to the right of the tabs select 'Rename'. This will rename the sketch and the folder it is in.
Click the drop down arrow to the right of the file tabs in the IDE. Select 'New Tab' and then name the file. You can add .h, .c and .cpp files just as you would in other C or C++ environments Add Existing File Copy into the projects folder. Close the sketch and then re-open, […]
Don't copy the file you want to include into the projects directory. Ensure the file(s) you want to add to the sketch/project are somewhere else and then use: Menu > Sketch > Add File… The file(s) will be copied into the project directory and added to the project,.
Upload timeout – avrdude: stk500v2_getsync(): timeout communicating with programmer This error will occur if the TX1 or RX1 pins are being driven by something else, blocking the programming comms. If you are using UART0 for something which is driving the RX pin then disconnect it to allow programming to occur. ‘Wire’ was not declared in this scope If […]
Line Numbers The line number of the cursor's position is displayed at the bottom left of the window. Not quite the same as proper line numbers but as good as it gets in the IDE.
Terminology Sketch A 'sketch' is a program in Arduino terminology. Creating The Project Open the 'Arduino' software. Create A New Sketch Menu > File > New Menu > Tools > Board Select the board you are using Menu > Tools > Serial Port Ensure the Arduino is connected to your computer and then select the […]
Download the Arduino IDE software from here.