Creating a simple program

After creating a new empty PlatformIO project you're ready for the next step.

Preparation

The PlatformIO project structure consists of the following:
  • platformio.ini (Project Configuration File)
  • src directory where you should place source code (*.h, *.c, *.cpp, *.S, *.ino, etc.)
  • lib directory can be used for the project-specific (private) libraries
Now, you need to download the necessary libraries and configuration files from our GitHub repository and place them in your project directory.

Writing a simple program

We're now going to write a simple program. Here's a quick example:



Next steps

Turn on your Ringo and plug it into your computer with a USB cable.
Click the Upload button on the bottom left part of the screen (arrow pointing to the right).

Click on the arrow pointing to the right

Click on the arrow pointing to the right

You have now uploaded your code on the Ringo!