aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f411_encoder_polling/Cargo.toml
diff options
context:
space:
mode:
authorMilton Eduardo Sosa <31409391+snorkman88@users.noreply.github.com>2024-10-02 20:46:42 +0200
committerGitHub <noreply@github.com>2024-10-02 18:46:42 +0000
commit87a8b7490866cda9e5c6819eeb357647bdb8d36e (patch)
tree3b69862d31adfd0bc09d9098a9a998eaf4349295 /examples/stm32f411_encoder_polling/Cargo.toml
parent805ea267a8515b7ee70125f444763f4aaa95c454 (diff)
Add example to poll encoder and display value on I2C display (#963)
Co-authored-by: Milton Eduardo Sosa <milton@Miltons-MacBook-Pro.local>
Diffstat (limited to 'examples/stm32f411_encoder_polling/Cargo.toml')
-rw-r--r--examples/stm32f411_encoder_polling/Cargo.toml30
1 files changed, 30 insertions, 0 deletions
diff --git a/examples/stm32f411_encoder_polling/Cargo.toml b/examples/stm32f411_encoder_polling/Cargo.toml
new file mode 100644
index 0000000..1114393
--- /dev/null
+++ b/examples/stm32f411_encoder_polling/Cargo.toml
@@ -0,0 +1,30 @@
+[workspace]
+
+[package]
+authors = ["<Milton Sosa <milton.eduardo.sosa@gmail.com>"]
+edition = "2018"
+readme = "README.md"
+name = "stm32f411_encoder_polling"
+version = "0.1.0"
+
+[dependencies]
+cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
+cortex-m-rt = "0.7.1"
+rtic = {version = "2.1.1", features=["thumbv7-backend", "rtic-monotonics"]}
+panic-halt = "0.2.0"
+embedded-hal = "1.0.0"
+defmt = "0.3.5"
+defmt-rtt = { version = "0.4.0"}
+rotary-encoder-embedded = "0.3.0"
+hd44780-driver = "0.4.0"
+
+[dependencies.stm32f4xx-hal]
+version = "0.21.0"
+features = ["stm32f411"] # replace the model of your microcontroller here
+
+# this lets you use `cargo fix`!
+[[bin]]
+name = "stm32f411_encoder_polling"
+test = false
+bench = false
+