mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Add examples for Atmel AVR platform
This commit is contained in:
@ -9,6 +9,8 @@
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
|
.. _atmelavr_upload_via_programmer:
|
||||||
|
|
||||||
Upload using Programmer
|
Upload using Programmer
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
@ -36,7 +38,8 @@ Configuration for the programmers:
|
|||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
[env:myenv]
|
[env:myenv]
|
||||||
...
|
platform = atmelavr
|
||||||
|
framework = arduino
|
||||||
upload_protocol = stk500v2
|
upload_protocol = stk500v2
|
||||||
upload_flags = -Pusb
|
upload_flags = -Pusb
|
||||||
|
|
||||||
@ -82,3 +85,18 @@ Configuration for the programmers:
|
|||||||
# edit these lines
|
# edit these lines
|
||||||
upload_port = SERIAL_PORT_HERE
|
upload_port = SERIAL_PORT_HERE
|
||||||
upload_speed = 19200
|
upload_speed = 19200
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
|
||||||
|
All project examples are located in PlatformIO repository
|
||||||
|
`Examples for Atmel AVR platform <https://github.com/platformio/platformio/tree/develop/examples/atmelavr-and-arduino>`_.
|
||||||
|
|
||||||
|
* `Wiring Blink <https://github.com/platformio/platformio/tree/develop/examples/wiring-blink>`_
|
||||||
|
* `Arduino with external libraries <https://github.com/platformio/platformio/tree/develop/examples/atmelavr-and-arduino/arduino-external-libs>`_
|
||||||
|
* `Arduino with internal libraries <https://github.com/platformio/platformio/tree/develop/examples/atmelavr-and-arduino/arduino-internal-libs>`_
|
||||||
|
* `Project uses source file name for "src" directory (Arduino project structure) <https://github.com/platformio/platformio/tree/develop/examples/atmelavr-and-arduino/arduino-own-src_dir>`_
|
||||||
|
* `Atmel AVR Native blink <https://github.com/platformio/platformio/tree/develop/examples/atmelavr-and-arduino/atmelavr-native-blink>`_
|
||||||
|
* `Digitstump Mouse <https://github.com/platformio/platformio/tree/develop/examples/atmelavr-and-arduino/digitstump-mouse>`_
|
||||||
|
* `Engduino magnetometer <https://github.com/platformio/platformio/tree/develop/examples/atmelavr-and-arduino/engduino-magnetometer>`_
|
||||||
|
* `PanStamp blink <https://github.com/platformio/platformio/tree/develop/examples/atmelavr-and-arduino/panstamp-blink>`_
|
||||||
|
@ -532,9 +532,11 @@ Examples
|
|||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
framework = arduino
|
framework = arduino
|
||||||
board = pro8MHzatmega328
|
board = pro8MHzatmega328
|
||||||
upload_protocol = usbasp -B5
|
upload_protocol = usbasp
|
||||||
|
upload_flags = -Pusb -B5
|
||||||
|
|
||||||
Then upload firmware using :option:`platformio run --target program`
|
Then upload firmware using :option:`platformio run --target program`. To use
|
||||||
|
other programmers see :ref:`atmelavr_upload_via_programmer`.
|
||||||
|
|
||||||
|
|
||||||
4. :ref:`platform_ststm32`: Upload firmware using GDB script ``upload.gdb``,
|
4. :ref:`platform_ststm32`: Upload firmware using GDB script ``upload.gdb``,
|
||||||
|
Reference in New Issue
Block a user