@@ -10,19 +10,22 @@ PlatformIO
10
10
.. image :: https://pypip.in/version/platformio/badge.png
11
11
:target: https://pypi.python.org/pypi/platformio/
12
12
:alt: Latest Version
13
+ .. image :: https://pypip.in/download/platformio/badge.png
14
+ :target: https://pypi.python.org/pypi/platformio/
15
+ :alt: Downloads
13
16
.. image :: https://pypip.in/license/platformio/badge.png
14
17
:target: https://pypi.python.org/pypi/platformio/
15
18
:alt: License
16
19
17
20
18
- **Platformio ** is a console tool to build code with different development
21
+ **PlatformIO ** is a console tool to build code with different development
19
22
platforms.
20
23
21
- You have no need to install any *IDE * or compile any toolchains. *Platformio *
24
+ You have no need to install any *IDE * or compile any toolchains. *PlatformIO *
22
25
has pre-built different development platforms including: compiler, debugger,
23
26
flasher (for embedded) and many other useful tools.
24
27
25
- **Platformio ** allows developer to compile the same code with different
28
+ **PlatformIO ** allows developer to compile the same code with different
26
29
platforms using only one command ``platformio run ``. This happens due to
27
30
``platformio.ini `` project's file (see
28
31
`default template <https://github.com/ivankravets/platformio/blob/develop/platformio/projectconftpl.ini >`_)
@@ -33,7 +36,12 @@ Each platform consists of packages which are located in own repository.
33
36
Due to ``platformio update `` command you will have up-to-date development
34
37
instruments.
35
38
36
- **Platformio ** is well suited for **embedded development **. It can:
39
+ .. image :: examples/platformio-examples.png
40
+ :target: https://github.com/ivankravets/platformio/raw/develop/examples/platformio-examples.png
41
+ :alt: Examples
42
+ :width: 730px
43
+
44
+ **PlatformIO ** is well suited for **embedded development **. It can:
37
45
38
46
* Automatically analyse dependency
39
47
* Reliably detect build changes
@@ -56,10 +64,16 @@ It has support for many popular embedded platforms like these:
56
64
See project `examples with screenshots <https://github.com/ivankravets/platformio/tree/develop/examples >`_.
57
65
58
66
67
+ IDE Integration
68
+ ---------------
69
+
70
+ * [Eclipse] `Building and debugging Atmel AVR (Arduino-based) project using Eclipse IDE+PlatformIO <http://www.ikravets.com/computer-life/programming/2014/06/20/building-and-debugging-atmel-avr-arduino-based-project-using-eclipse-ideplatformio >`_
71
+
72
+
59
73
Python & OS Support
60
74
-------------------
61
75
62
- **Platformio ** is written in `Python <https://www.python.org >`_ and works with
76
+ **PlatformIO ** is written in `Python <https://www.python.org >`_ and works with
63
77
versions 2.6 and 2.7 on Unix/Linux, OS X, and Windows.
64
78
65
79
@@ -68,9 +82,6 @@ Quickstart
68
82
69
83
.. code-block :: bash
70
84
71
- # Install platformio
72
- $ pip install platformio && pip install --egg scons
73
-
74
85
# Print all availalbe development platforms for installing
75
86
$ platformio search all
76
87
@@ -93,29 +104,55 @@ Installation
93
104
94
105
All commands below should be executed in
95
106
`Command-line <http://en.wikipedia.org/wiki/Command-line_interface >`_
96
- application in your OS :
107
+ application in your * OS * :
97
108
98
109
* *Unix/Linux/OS X * this is *Terminal * application.
99
110
* *Windows * this is
100
111
`Command Prompt <http://en.wikipedia.org/wiki/Command_Prompt >`_ (``cmd.exe ``)
101
112
application.
102
113
103
- 2. Check a ``python `` version:
114
+ Also, the `Python Interpreter <https://www.python.org/downloads/ >`_ (2.6 or 2.7)
115
+ is required.
116
+
117
+
118
+ Super-Quick
119
+ ~~~~~~~~~~~
120
+
121
+ To install or upgrade *PlatformIO *, download
122
+ `get-platformio.py <https://raw.githubusercontent.com/ivankravets/platformio/develop/scripts/get-platformio.py >`_ script.
123
+
124
+ Then run the following (which may require administrator access):
125
+
126
+ .. code-block :: bash
127
+
128
+ $ python get-platformio.py
129
+
130
+ On *Windows OS * it may look like:
131
+
132
+ .. code-block :: bash
133
+
134
+ C:\P ython27\p ython.exe get-platformio.py
135
+
136
+
137
+ Full Guide
138
+ ~~~~~~~~~~
139
+
140
+ 1. Check a ``python `` version (only 2.6-2.7 is supported):
104
141
105
142
.. code-block :: bash
106
143
107
144
$ python --version
108
145
109
- Windows OS Users only:
146
+ * Windows OS * Users only:
110
147
111
- * `Download Python <https://www.python.org/downloads/ >`_ and install it.
148
+ * `Download Python 2.7 <https://www.python.org/downloads/ >`_ and install it.
112
149
* Add to PATH system variable ``;C:\Python27;C:\Python27\Scripts; `` and
113
150
reopen *Command Prompt * (``cmd.exe ``) application. Please read this
114
151
article `How to set the path and environment variables in Windows
115
152
<http://www.computerhope.com/issues/ch000549.htm> `_.
116
153
117
154
118
- 2. Check a ``pip `` tool for installing and managing Python packages:
155
+ 2. Check a ``pip `` tool for installing and managing * Python * packages:
119
156
120
157
.. code-block :: bash
121
158
@@ -193,7 +230,7 @@ Search for development platforms:
193
230
``platformio install ``
194
231
~~~~~~~~~~~~~~~~~~~~~~
195
232
196
- *Platformio * has pre-built development platforms with related packages. You
233
+ *PlatformIO * has pre-built development platforms with related packages. You
197
234
can install one of them:
198
235
199
236
.. code-block :: bash
@@ -294,7 +331,7 @@ Initialize new platformio based project.
294
331
After this command ` ` platformio` ` will create:
295
332
296
333
* ` ` .pioenvs` ` - a temporary working directory.
297
- * ` ` lib` ` - a directory for project specific libraries. Platformio will
334
+ * ` ` lib` ` - a directory for project specific libraries. PlatformIO will
298
335
compile their to static libraries and link to executable file
299
336
* ` ` src` ` - a source directory. Put code here.
300
337
* ` ` platformio.ini` ` - a configuration file for project
0 commit comments