Skip to content

Commit

Permalink
qt-py-rp2040: Move example into own crate
Browse files Browse the repository at this point in the history
Run with:

```sh
cd examples/qt-py-rp2040/
cargo run
```

Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Aug 30, 2023
1 parent 00d7bef commit cf1205e
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 18 deletions.
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Cargo
# will have compiled files and executables
/target/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Expand All @@ -9,8 +9,3 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
*.uf2


# Added by cargo

/target
20 changes: 8 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ embedded-graphics-core = { optional = true, version = "0.4.0" }
[package.metadata.docs.rs]
all-features = true

[dev-dependencies]
cortex-m-rt = "0.7.3"
cortex-m = "0.7.7"
panic-halt = "0.2.0"
#[dev-dependencies]
#cortex-m-rt = "0.7.3"
#cortex-m = "0.7.7"
#panic-halt = "0.2.0"
#stm32g0xx-hal = {version = "0.2.0", features = ["rt", "stm32g071"]}
# TODO Split boards
#rp-pico = "0.7.0"
adafruit-qt-py-rp2040 = {version = "0.6.0", features = ["rt"]}
tinybmp = "0.5.0"
embedded-graphics = "0.8.1"
fugit = "0.3.7"
#adafruit-qt-py-rp2040 = {version = "0.6.0", features = ["rt"]}
#tinybmp = "0.5.0"
#embedded-graphics = "0.8.1"
#fugit = "0.3.7"

[features]
adafruit_rgb_13x9 = []
Expand All @@ -40,7 +40,3 @@ default = ["adafruit_rgb_13x9", "embedded_graphics"]
#[[example]]
#name = "stm32-gaypride"
#required-features = ["adafruit_rgb_13x9", "embedded_graphics"]

[[example]]
name = "qt-py-rp2040-matrix"
required-features = ["adafruit_rgb_13x9"]
File renamed without changes.
22 changes: 22 additions & 0 deletions examples/qt-py-rp2040/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
edition = "2021"
name = "is31fl3741-qt-py-rp2040"
version = "0.2.1"

[dependencies]
embedded-hal = "0.2.7"
embedded-graphics-core = { optional = true, version = "0.4.0" }

cortex-m-rt = "0.7.3"
cortex-m = "0.7.7"
panic-halt = "0.2.0"
#stm32g0xx-hal = {version = "0.2.0", features = ["rt", "stm32g071"]}
# TODO Split boards
#rp-pico = "0.7.0"
adafruit-qt-py-rp2040 = {version = "0.6.0", features = ["rt"]}
tinybmp = "0.5.0"
embedded-graphics = "0.8.1"
fugit = "0.3.7"

is31fl3741 = { path = "../.." }
#required-features = ["adafruit_rgb_13x9"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cf1205e

Please sign in to comment.