Skip to content

Be even more explicit about Pico and Pico W needing different blink samples #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pico-blink-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This example demonstrates how to integrate with the Pico SDK which is using CMak

## Requirements

- A Raspberry Pi Pico (non-W) board. If you have a Pico W instead, refer to the [pico-w-blink-sdk](../pico-w-blink-sdk) sample instead.
- Follow the setup steps at https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf, in particular you'll need:
- A checkout of the [pico-sdk](https://github.com/raspberrypi/pico-sdk.git), with git submodules checked out.
- A checkout of the [pico-examples](https://github.com/raspberrypi/pico-examples.git).
Expand Down
8 changes: 5 additions & 3 deletions pico-blink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

<img src="https://raw.githubusercontent.com/kubamracek/swift-evolution/branch/assets/pico-blink.jpg">

## Requirements

- A Raspberry Pi Pico (non-W) board. If you have a Pico W instead, this sample code will require modifications.

## How to build and run this example:

- Connect the Pico W board via a USB cable to your Mac, and make sure it's in the USB Mass Storage firmware upload mode (either hold the BOOTSEL button while plugging the board, or make sure your Flash memory doesn't contain any valid firmware).
- Connect the Pico board via a USB cable to your Mac, and make sure it's in the USB Mass Storage firmware upload mode (either hold the BOOTSEL button while plugging the board, or make sure your Flash memory doesn't contain any valid firmware).
- Make sure you have a recent nightly Swift toolchain that has Embedded Swift support.
- Build and copy the program in the UF2 format to the Mass Storage device to trigger flashing the program into memory (after which the device will reboot and run the firmware):
``` console
Expand All @@ -13,5 +17,3 @@ $ TOOLCHAINS='<toolchain-name>' ./build.sh
$ cp .build/blink.uf2 /Volumes/RP2040
```
- The green LED should now be blinking in a pattern.

TODO: Remove unused stuff from HAL/Hardware
1 change: 1 addition & 0 deletions pico-w-blink-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This example demonstrates how to integrate with the Pico SDK which is using CMak

## Requirements

- A Raspberry Pi Pico W board. If you have a Pico (non-W) instead, refer to the [pico-blink-sdk](../pico-blink-sdk) sample instead.
- Follow the setup steps at https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf, in particular you'll need:
- A checkout of the [pico-sdk](https://github.com/raspberrypi/pico-sdk.git), with git submodules checked out.
- A checkout of the [pico-examples](https://github.com/raspberrypi/pico-examples.git).
Expand Down