1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
.. _install-dev:
============
Installation
============
This section will help you set up the tools and programs needed for
developing programs and firmware to flash to the BBC micro:bit using MicroPython.
Dependencies
------------
Development Environment
-----------------------
You will need:
* git
* yotta
Depending on your operating system, the installation instructions vary. Use
the installation scenario that best suits your system.
Yotta will require an ARM mbed account. It will walk you through signing up
if you are not registered.
Installation Scenarios
----------------------
* :ref:`Windows <microbit-windows>`
* :ref:`OS X <microbit-osx>`
* :ref:`Linux <microbit-linux>`
* :ref:`Debian and Ubuntu <microbit-debian-ubuntu>`
* :ref:`Red Hat Fedora/CentOS <microbit-redhat>`
* :ref:`Raspberry Pi <microbit-rpi>`
.. _microbit-windows:
Windows
~~~~~~~
When installing `Yotta
<http://yottadocs.mbed.com/>`_, make sure you have these components ticked to install.
- python
- gcc
- cMake
- ninja
- Yotta
- git-scm
- mbed serial driver
.. _microbit-osx:
OS X
~~~~
.. _microbit-linux:
Linux
~~~~~
These steps will cover the basic flavors of Linux and working with the
micro:bit and MicroPython. See also the specific sections for Raspberry Pi,
Debian/Ubuntu, and Red Hat Fedora/Centos.
.. _microbit-debian-ubuntu:
Debian and Ubuntu
^^^^^^^^^^^^^^^^^
::
sudo add-apt-repository -y ppa:team-gcc-arm-embedded
sudo add-apt-repository -y ppa:pmiller-opensource/ppa
sudo apt-get update
sudo apt-get install cmake ninja-build gcc-arm-none-eabi srecord libssl-dev
pip3 install yotta
.. _microbit-redhat:
Red Hat Fedora/CentOS
^^^^^^^^^^^^^^^^^^^^^
.. _microbit-rpi:
Raspberry Pi
^^^^^^^^^^^^
.. _next-steps:
Next steps
----------
Congratulations. You have installed your development environment and are ready to
begin :ref:`flashing firmware <flashfirmware>` to the micro:bit.
|