Skip to content

Commit ff3904f

Browse files
Merge pull request #8 from FrameworkComputer/workspaces
2 parents 1503762 + 10243d5 commit ff3904f

27 files changed

+1163
-182
lines changed

Cargo.lock

Lines changed: 86 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 21 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,24 @@
1-
[package]
2-
edition = "2021"
3-
name = "lotus_inputmodules"
4-
version = "0.1.2-pre"
5-
6-
[dependencies]
7-
cortex-m = "0.7"
8-
cortex-m-rt = "0.7.3"
9-
embedded-hal = { version = "0.2.7", features = ["unproven"] }
10-
11-
defmt = "0.3"
12-
defmt-rtt = "0.4"
13-
14-
#panic-probe = { version = "0.3", features = ["print-defmt"] }
15-
rp2040-panic-usb-boot = { git = "https://github.com/rwalkr/rp2040-panic-usb-boot" }
16-
17-
# Not using a BSP, we've got a Lotus BSP's locally in this crate
18-
rp2040-hal = { version="0.7", features=["rt", "critical-section-impl"] }
19-
rp2040-boot2 = "0.2"
20-
21-
# USB Serial
22-
usb-device= "0.2.9"
23-
24-
heapless = "0.7.9"
25-
usbd-serial = "0.1.1"
26-
usbd-hid = "0.5.1"
27-
fugit = "0.3.6"
28-
29-
# LED Matrix
30-
is31fl3741 = { git = "https://github.com/JohnAZoidberg/is31fl3741", branch = "all-at-once", optional = true }
31-
32-
33-
# B1 Display
34-
display-interface-spi = { version = "0.4.1", optional = true }
35-
mipidsi = { version = "0.6.0", optional = true }
36-
embedded-graphics = { version = "0.7", optional = true }
37-
tinybmp = { version = "0.4.0", optional = true }
38-
39-
# C1 Minimal
40-
smart-leds = { version = "0.3.0", optional = true }
41-
ws2812-pio = { version = "0.5.0", optional = true }
42-
43-
[lib]
44-
name = "lotus_input"
45-
path = "src/lib.rs"
46-
47-
[[bin]]
48-
name = "ledmatrix"
49-
required-features = ["ledmatrix"]
50-
51-
[[bin]]
52-
name = "b1display"
53-
required-features = ["b1display"]
54-
55-
[[bin]]
56-
name = "c1minimal"
57-
required-features = ["c1minimal"]
58-
59-
[features]
60-
ledmatrix = [ "is31fl3741" ]
61-
b1display = [ "display-interface-spi", "mipidsi", "embedded-graphics", "tinybmp" ]
62-
c1minimal = [ "smart-leds", "ws2812-pio" ]
1+
[workspace]
2+
resolver = "2"
3+
members = [
4+
"b1display",
5+
"c1minimal",
6+
"ledmatrix",
7+
"lotus-inputmodules",
8+
]
9+
# Don't build all of them by default.
10+
# Because that'll lead to all features enabled in `lotus-inputmodules` and it
11+
# doesn't currently support building with all features enabled at the same
12+
# time.
13+
default-members = [
14+
"lotus-inputmodules"
15+
]
16+
17+
#[patch.'https://github.com/rp-rs/rp-hal.git']
18+
#rp2040-hal = { path = "./rp2040-hal" }
19+
#
20+
#[patch.crates-io]
21+
#rp2040-hal = { path = "./rp2040-hal" }
6322

6423
# cargo build/run
6524
[profile.dev]

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ cargo install elf2uf2-rs --locked
101101
Build:
102102

103103
```sh
104-
cargo build --bin ledmatrix --features=ledmatrix
105-
cargo build --bin b1display --features=b1display
106-
cargo build --bin c1minimal --features=c1minimal
104+
cargo build -p ledmatrix
105+
cargo build -p b1display
106+
cargo build -p c1minimal
107107
```
108108

109109
Generate UF2 file:
@@ -121,7 +121,9 @@ First, put the module into bootloader mode, which will expose a filesystem
121121
This can be done by pressing the bootsel button while plugging it in.
122122

123123
```sh
124-
cargo run
124+
cargo run -p ledmatrix
125+
cargo run -p b1display
126+
cargo run -p c1minimal
125127
```
126128

127129
Or by copying the above generated UF2 file to the partition mounted when the

b1display/Cargo.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[package]
2+
edition = "2021"
3+
name = "b1display"
4+
version = "0.1.2-pre"
5+
6+
[dependencies]
7+
cortex-m = "0.7"
8+
cortex-m-rt = "0.7.3"
9+
embedded-hal = { version = "0.2.7", features = ["unproven"] }
10+
11+
defmt = "0.3"
12+
defmt-rtt = "0.4"
13+
14+
#panic-probe = { version = "0.3", features = ["print-defmt"] }
15+
rp2040-panic-usb-boot = { git = "https://github.com/rwalkr/rp2040-panic-usb-boot" }
16+
17+
# Not using a BSP, we've got a Lotus BSP's locally in this crate
18+
rp2040-hal = { version="0.7", features=["rt", "critical-section-impl"] }
19+
rp2040-boot2 = "0.2"
20+
21+
# USB Serial
22+
usb-device= "0.2.9"
23+
24+
heapless = "0.7.9"
25+
usbd-serial = "0.1.1"
26+
usbd-hid = "0.5.1"
27+
fugit = "0.3.6"
28+
29+
st7306-lcd = { git = "ssh://[email protected]/FrameworkComputer/st7306.git" }
30+
embedded-graphics = "0.7"
31+
tinybmp = "0.4.0"
32+
33+
[dependencies.lotus-inputmodules]
34+
path = "../lotus-inputmodules"
35+
features = [ "b1display" ]

0 commit comments

Comments
 (0)