mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-03 11:54:26 +02:00
Added README to example with console result image
This commit is contained in:
20
examples/atmelavr-native-blink/README.rst
Normal file
20
examples/atmelavr-native-blink/README.rst
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
Atmel AVR: Native Blink Example
|
||||||
|
===============================
|
||||||
|
|
||||||
|
1. Download ``platformio``
|
||||||
|
`sources <https://github.com/ivankravets/platformio/archive/develop.zip>`_.
|
||||||
|
2. Extract ZIP archive
|
||||||
|
3. Then run these commands:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
# Change directory to example
|
||||||
|
$ cd platformio-develop/examples/atmelavr-native-blink/
|
||||||
|
|
||||||
|
# Install Atmel AVR development platform
|
||||||
|
$ platformio install atmelavr
|
||||||
|
|
||||||
|
# Process example project
|
||||||
|
$ platformio run
|
||||||
|
|
||||||
|
.. image:: console-result.png
|
BIN
examples/atmelavr-native-blink/console-result.png
Normal file
BIN
examples/atmelavr-native-blink/console-result.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 144 KiB |
@@ -1,10 +1,13 @@
|
|||||||
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||||
|
# See LICENSE for details.
|
||||||
|
|
||||||
[env:arduino_pro5v]
|
[env:arduino_pro5v]
|
||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
board_mcu = atmega168
|
board_mcu = atmega168
|
||||||
board_f_cpu = 16000000L
|
board_f_cpu = 16000000L
|
||||||
|
|
||||||
upload_port = /dev/tty.SLAB_USBtoUART
|
upload_port = /dev/tty.SLAB_USBtoUART
|
||||||
; upload_port = COM3
|
# upload_port = COM3
|
||||||
upload_protocol = arduino
|
upload_protocol = arduino
|
||||||
upload_speed = 19200
|
upload_speed = 19200
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user