From bf9c309406b8c1e4e79c3865c098eec6bbd0d30c Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:56:03 +1000 Subject: [PATCH] Rename examples to make them consistent --- README.md | 8 ++++---- .../.cargo/config.toml | 0 .../.vscode/launch.json | 0 .../.vscode/settings.json | 0 .../Cargo.toml | 4 ++-- .../build.rs | 0 .../memory.x | 0 .../src/main.rs | 0 .../.cargo/config.toml | 0 .../.gitignore | 0 .../.vscode/settings.json | 0 .../Cargo.toml | 0 .../README.md | 0 .../build.rs | 0 .../memory.x | 0 .../src/main.rs | 0 examples/nunchuk-async-embassy-rp/Cargo.toml | 4 ++-- examples/nunchuk-blocking-rp2040-hal/Cargo.toml | 2 +- 18 files changed, 9 insertions(+), 9 deletions(-) rename examples/{embassy-rp-async => classic-async-embassy-rp}/.cargo/config.toml (100%) rename examples/{embassy-rp-async => classic-async-embassy-rp}/.vscode/launch.json (100%) rename examples/{embassy-rp-async => classic-async-embassy-rp}/.vscode/settings.json (100%) rename examples/{embassy-rp-async => classic-async-embassy-rp}/Cargo.toml (97%) rename examples/{embassy-rp-async => classic-async-embassy-rp}/build.rs (100%) rename examples/{embassy-rp-async => classic-async-embassy-rp}/memory.x (100%) rename examples/{embassy-rp-async => classic-async-embassy-rp}/src/main.rs (100%) rename examples/{rp2040-hal-blocking => classic-blocking-rp2040-hal}/.cargo/config.toml (100%) rename examples/{rp2040-hal-blocking => classic-blocking-rp2040-hal}/.gitignore (100%) rename examples/{rp2040-hal-blocking => classic-blocking-rp2040-hal}/.vscode/settings.json (100%) rename examples/{rp2040-hal-blocking => classic-blocking-rp2040-hal}/Cargo.toml (100%) rename examples/{rp2040-hal-blocking => classic-blocking-rp2040-hal}/README.md (100%) rename examples/{rp2040-hal-blocking => classic-blocking-rp2040-hal}/build.rs (100%) rename examples/{rp2040-hal-blocking => classic-blocking-rp2040-hal}/memory.x (100%) rename examples/{rp2040-hal-blocking => classic-blocking-rp2040-hal}/src/main.rs (100%) diff --git a/README.md b/README.md index 79ba3c0..d5d7297 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ This driver allows you to read all axes and buttons for Wiimote Extension contro Driver docs are available in [the wii-ext directory](wii-ext/README.md) Examples: - - [using the async api for classic controller](examples/embassy-rp-async) - - [using the async api for the nunchuk controller](examples/nunchuck-async-embassy-rp) - - [using the blocking api for classic controller](examples/rp2040-hal-blocking/) - - [using the blocking api for the nunchuk controller](examples/nunchuk-blocking-rp2040-hal/) + - [using the async api for classic controller](examples/classic-async-embassy-rp) + - [using the async api for the nunchuk controller](examples/nunchuk-async-embassy-rp) + - [using the blocking api for classic controller](examples/classic-blocking-rp2040-hal) + - [using the blocking api for the nunchuk controller](examples/nunchuk-blocking-rp2040-hal) ## Status diff --git a/examples/embassy-rp-async/.cargo/config.toml b/examples/classic-async-embassy-rp/.cargo/config.toml similarity index 100% rename from examples/embassy-rp-async/.cargo/config.toml rename to examples/classic-async-embassy-rp/.cargo/config.toml diff --git a/examples/embassy-rp-async/.vscode/launch.json b/examples/classic-async-embassy-rp/.vscode/launch.json similarity index 100% rename from examples/embassy-rp-async/.vscode/launch.json rename to examples/classic-async-embassy-rp/.vscode/launch.json diff --git a/examples/embassy-rp-async/.vscode/settings.json b/examples/classic-async-embassy-rp/.vscode/settings.json similarity index 100% rename from examples/embassy-rp-async/.vscode/settings.json rename to examples/classic-async-embassy-rp/.vscode/settings.json diff --git a/examples/embassy-rp-async/Cargo.toml b/examples/classic-async-embassy-rp/Cargo.toml similarity index 97% rename from examples/embassy-rp-async/Cargo.toml rename to examples/classic-async-embassy-rp/Cargo.toml index 107e115..9a3d9a4 100644 --- a/examples/embassy-rp-async/Cargo.toml +++ b/examples/classic-async-embassy-rp/Cargo.toml @@ -1,10 +1,10 @@ [package] edition = "2021" -name = "embassy_rp_async" +name = "classic-async-embassy-rp" version = "0.1.0" license = "MIT OR Apache-2.0" resolver = "2" - +publish = false [dependencies] wii-ext = { version = "0.4.0", features = [ diff --git a/examples/embassy-rp-async/build.rs b/examples/classic-async-embassy-rp/build.rs similarity index 100% rename from examples/embassy-rp-async/build.rs rename to examples/classic-async-embassy-rp/build.rs diff --git a/examples/embassy-rp-async/memory.x b/examples/classic-async-embassy-rp/memory.x similarity index 100% rename from examples/embassy-rp-async/memory.x rename to examples/classic-async-embassy-rp/memory.x diff --git a/examples/embassy-rp-async/src/main.rs b/examples/classic-async-embassy-rp/src/main.rs similarity index 100% rename from examples/embassy-rp-async/src/main.rs rename to examples/classic-async-embassy-rp/src/main.rs diff --git a/examples/rp2040-hal-blocking/.cargo/config.toml b/examples/classic-blocking-rp2040-hal/.cargo/config.toml similarity index 100% rename from examples/rp2040-hal-blocking/.cargo/config.toml rename to examples/classic-blocking-rp2040-hal/.cargo/config.toml diff --git a/examples/rp2040-hal-blocking/.gitignore b/examples/classic-blocking-rp2040-hal/.gitignore similarity index 100% rename from examples/rp2040-hal-blocking/.gitignore rename to examples/classic-blocking-rp2040-hal/.gitignore diff --git a/examples/rp2040-hal-blocking/.vscode/settings.json b/examples/classic-blocking-rp2040-hal/.vscode/settings.json similarity index 100% rename from examples/rp2040-hal-blocking/.vscode/settings.json rename to examples/classic-blocking-rp2040-hal/.vscode/settings.json diff --git a/examples/rp2040-hal-blocking/Cargo.toml b/examples/classic-blocking-rp2040-hal/Cargo.toml similarity index 100% rename from examples/rp2040-hal-blocking/Cargo.toml rename to examples/classic-blocking-rp2040-hal/Cargo.toml diff --git a/examples/rp2040-hal-blocking/README.md b/examples/classic-blocking-rp2040-hal/README.md similarity index 100% rename from examples/rp2040-hal-blocking/README.md rename to examples/classic-blocking-rp2040-hal/README.md diff --git a/examples/rp2040-hal-blocking/build.rs b/examples/classic-blocking-rp2040-hal/build.rs similarity index 100% rename from examples/rp2040-hal-blocking/build.rs rename to examples/classic-blocking-rp2040-hal/build.rs diff --git a/examples/rp2040-hal-blocking/memory.x b/examples/classic-blocking-rp2040-hal/memory.x similarity index 100% rename from examples/rp2040-hal-blocking/memory.x rename to examples/classic-blocking-rp2040-hal/memory.x diff --git a/examples/rp2040-hal-blocking/src/main.rs b/examples/classic-blocking-rp2040-hal/src/main.rs similarity index 100% rename from examples/rp2040-hal-blocking/src/main.rs rename to examples/classic-blocking-rp2040-hal/src/main.rs diff --git a/examples/nunchuk-async-embassy-rp/Cargo.toml b/examples/nunchuk-async-embassy-rp/Cargo.toml index 91261bb..7999b35 100644 --- a/examples/nunchuk-async-embassy-rp/Cargo.toml +++ b/examples/nunchuk-async-embassy-rp/Cargo.toml @@ -1,10 +1,10 @@ [package] edition = "2021" -name = "nunchuk_async_embassy_rp" +name = "nunchuk-async-embassy-rp" version = "0.1.0" license = "MIT OR Apache-2.0" resolver = "2" - +publish = false [dependencies] wii-ext = { version = "0.4.0", features = [ diff --git a/examples/nunchuk-blocking-rp2040-hal/Cargo.toml b/examples/nunchuk-blocking-rp2040-hal/Cargo.toml index 5853789..113068a 100644 --- a/examples/nunchuk-blocking-rp2040-hal/Cargo.toml +++ b/examples/nunchuk-blocking-rp2040-hal/Cargo.toml @@ -2,7 +2,7 @@ authors = ["9names"] edition = "2018" readme = "README.md" -name = "wii-ext_blocking_demo" +name = "nunchuk-blocking-rp2040-hal" version = "0.1.0" resolver = "2" publish = false