diff options
| author | Ulf Lilleengen <[email protected]> | 2022-06-15 10:44:15 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-06-15 10:44:15 +0200 |
| commit | eb237337671af5c9be7fc120e5d5235039dc5e5a (patch) | |
| tree | 32818ec3a94dab4f77fbd06dee561bfaf5ffe9cf | |
| parent | 72eb16b46dc9ff12ae38b9d9fb94e3ad7a4b2e65 (diff) | |
Ignore compiling rust code
| -rw-r--r-- | README.md | 11 |
1 files changed, 6 insertions, 5 deletions
| @@ -42,7 +42,7 @@ The <a href="https://github.com/embassy-rs/nrf-softdevice">nrf-softdevice</a> cr | |||
| 42 | 42 | ||
| 43 | ## Sneak peek | 43 | ## Sneak peek |
| 44 | 44 | ||
| 45 | ```rust | 45 | ```rust,ignore |
| 46 | use defmt::info; | 46 | use defmt::info; |
| 47 | use embassy::executor::Spawner; | 47 | use embassy::executor::Spawner; |
| 48 | use embassy::time::{Duration, Timer}; | 48 | use embassy::time::{Duration, Timer}; |
| @@ -93,20 +93,21 @@ Examples are found in the `examples/` folder seperated by the chip manufacturer | |||
| 93 | ### Running examples | 93 | ### Running examples |
| 94 | 94 | ||
| 95 | - Setup git submodules (needed for STM32 examples) | 95 | - Setup git submodules (needed for STM32 examples) |
| 96 | ``` | 96 | |
| 97 | ```bash | ||
| 97 | git submodule init | 98 | git submodule init |
| 98 | git submodule update | 99 | git submodule update |
| 99 | ``` | 100 | ``` |
| 100 | 101 | ||
| 101 | - Install `probe-run` with defmt support. | 102 | - Install `probe-run` with defmt support. |
| 102 | 103 | ||
| 103 | ``` | 104 | ```bash |
| 104 | cargo install probe-run | 105 | cargo install probe-run |
| 105 | ``` | 106 | ``` |
| 106 | 107 | ||
| 107 | - Change directory to the sample's base directory. For example: | 108 | - Change directory to the sample's base directory. For example: |
| 108 | 109 | ||
| 109 | ``` | 110 | ```bash |
| 110 | cd examples/nrf | 111 | cd examples/nrf |
| 111 | ``` | 112 | ``` |
| 112 | 113 | ||
| @@ -114,7 +115,7 @@ cd examples/nrf | |||
| 114 | 115 | ||
| 115 | For example: | 116 | For example: |
| 116 | 117 | ||
| 117 | ``` | 118 | ```bash |
| 118 | cargo run --bin blinky | 119 | cargo run --bin blinky |
| 119 | ``` | 120 | ``` |
| 120 | 121 | ||
