Friday, October 22, 2010

How to compile Arduino code?

1. First of all you'll need the Arduino IDE. You can download it freely from the official website:

2. Then you will need to open the PDE file provided with the code you are trying to compile, using the Arduino IDE.
3. Click on the play button in the toolbar. It's the first button. This will try to compile the code.
4. If it doesn't works either you are compiling for the wrong board or you are missing some libraries
4a. You can try different boards by clicking in the Tools menu > Board
4b. You can install the missing libraries by searching for its name in the first compiling error, then googling for it, and then unzipping the library file in your arduino IDE\libraries folder

No comments:

Post a Comment