Files
platformio-core/docs/quickstart.rst

78 lines
2.0 KiB
ReStructuredText
Raw Normal View History

2014-08-09 16:31:20 +03:00
.. _quickstart:
Quickstart
==========
2014-11-07 22:14:44 +02:00
.. note::
Please read `Get Started <http://platformio.ikravets.com/#!/get-started>`_
article from the official WebSite.
2014-08-09 16:31:20 +03:00
First, :ref:`Install PlatformIO <installation>`.
Print all available development platforms for installing
.. code-block:: bash
2014-12-03 14:56:24 +02:00
$ platformio search
2014-08-09 16:31:20 +03:00
[ ... ]
Install new development platform
.. code-block:: bash
$ platformio install PLATFORM
Downloading [####################################] 100%
Unpacking [####################################] 100%
Installing .....
[ ... ]
The platform 'PLATFORM' has been successfully installed!
Initialize new PlatformIO based project
.. code-block:: bash
$ platformio init
2014-12-03 14:56:24 +02:00
The current working directory *** will be used for the new project.
You can specify another project directory via
`platformio init -d %PATH_TO_THE_PROJECT_DIR%` command.
The next files/directories will be created in ***
`platformio.ini` - Project Configuration File
`src` - a source directory. Put your source code here
`lib` - a directory for the project specific libraries
Do you want to continue? [y/N]: y
Project has been successfully initialized!
Now you can process it with `platformio run` command.
2014-08-09 16:31:20 +03:00
Setup environments in ``platformio.ini``. For more examples go to
2014-12-03 14:56:24 +02:00
:ref:`Project Configuration File <projectconf_examples>`
.. code-block:: ini
# Simple and base environment
[env:mybaseenv]
platform = %INSTALLED_PLATFORM_NAME_HERE%
2014-08-09 16:31:20 +03:00
Process the project's environments
.. code-block:: bash
$ platformio run
# if embedded project then upload firmware
$ platformio run --target upload
# clean project
$ platformio run --target clean
2014-08-12 19:29:57 +03:00
Further examples can be found in the ``examples/`` directory in the source
distribution or `on the web <https://github.com/ivankravets/platformio/tree/develop/examples>`_.
Also, for more detailed information as for commands please go to
:ref:`userguide` sections.