Skip to content

Commit f07a2e6

Browse files
authored
Merge pull request #4 from saibatizoku/master
Add 'led-matrix' feature to Cargo.toml
2 parents c3e2a8d + 2c5cdee commit f07a2e6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ measurements = "0.10.2"
1414
i2cdev = "0.4.0"
1515
byteorder = "1.0"
1616
libc = { version = "0.2", optional = true }
17+
sensehat-screen = { version = "0.1", optional = true }
1718

1819
[build-dependencies]
1920
gcc = "0.3"
@@ -23,6 +24,7 @@ gcc = "0.3"
2324
# packages, but they are strictly optional.
2425
default = ["rtimu"]
2526
rtimu = [ "libc" ]
27+
led-matrix = ["sensehat-screen"]
2628

2729
[package.metadata.docs.rs]
2830
features = [ ]

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ extern crate measurements;
2222
#[cfg(feature = "rtimu")]
2323
extern crate libc;
2424

25+
#[cfg(feature = "led-matrix")]
26+
extern crate sensehat_screen;
27+
2528
mod rh;
2629
mod hts221;
2730
mod lps25h;

0 commit comments

Comments
 (0)