Skip to content

Commit ef77b9e

Browse files
committed
Prefer sh over console, and fix a wrapping bug.
`sh` is easier to copy-paste, because it doesn't include the prompt. Also it has syntax highlighting.
1 parent 6f8279d commit ef77b9e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ to 'mount' the device, like you would a USB Thumb Drive.
256256
specified 'runner'. As the 'runner' is picotool, it will flash your compiled
257257
binary over USB.
258258

259-
```console
260-
$ cargo run --release --features "critical-section-impl,rt,defmt" --example pwm_blink
259+
```sh
260+
cargo run --release --features "critical-section-impl,rt,defmt" --example pwm_blink
261261
```
262262

263263
(The `pwm_blink` example doesn't need all these feature flags. They are listed here
@@ -267,9 +267,8 @@ If you want to create a UF2 file, which is loaded by copying it over to the
267267
RPI-RP2 mass storage device, use the `picotool uf2 convert` command on your
268268
compiled program with the `-t elf` argument.
269269

270-
```console
271-
$ picotool uf2 convert -t elf target/thumbv6m-none-eabi/release/pwm_blink
272-
pwm_blink.uf2
270+
```sh
271+
picotool uf2 convert -t elf target/thumbv6m-none-eabi/release/pwm_blink pwm_blink.uf2
273272
```
274273

275274
Picotool can also read "Binary Info" from a device with `picotool info`. To
@@ -287,8 +286,8 @@ probe-rs can autodetect your debug probe, which can make it easier to use.
287286

288287
*Step 1* - Install `probe-rs`:
289288

290-
```console
291-
$ cargo install --locked probe-rs-tools
289+
```sh
290+
cargo install --locked probe-rs-tools
292291
```
293292

294293
Alternatively, follow the installation instructions on https://probe.rs/.
@@ -319,8 +318,8 @@ will reflect the probe you have connected.
319318
RP2040 via the first probe it finds, and install your firmware into the Flash
320319
connected to the RP2040.
321320

322-
```console
323-
$ cargo run --release --example pwm_blink
321+
```sh
322+
cargo run --release --example pwm_blink
324323
```
325324
[RP2040 Project Template]: https://github.com/rp-rs/rp2040-project-template
326325
[RP2350 Project Template]: https://github.com/rp-rs/rp235x-project-template

0 commit comments

Comments
 (0)