Current measurement with ina3221

Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
Thomas Klaehn
2026-03-13 07:12:29 +01:00
parent 2301274850
commit 1556a2a2fe
4 changed files with 292 additions and 53 deletions
Generated
+38 -1
View File
@@ -20,6 +20,17 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "axs5106l"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "412c958bcde165622bed3b9d5839efff5def86bd6c8ce5c4c415f714885e3549"
dependencies = [
"embedded-hal 1.0.0",
"heapless 0.9.2",
"nb 1.1.0",
]
[[package]]
name = "az"
version = "1.2.1"
@@ -61,6 +72,12 @@ dependencies = [
"syn 2.0.117",
]
[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.11.0"
@@ -484,7 +501,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54786287c0a61ca0f78cb0c338a39427551d1be229103b4444591796c579e093"
dependencies = [
"bitfield",
"bitflags",
"bitflags 2.11.0",
"bytemuck",
"cfg-if",
"critical-section",
@@ -668,6 +685,7 @@ dependencies = [
name = "esp32c6-display"
version = "0.1.0"
dependencies = [
"axs5106l",
"embedded-graphics",
"embedded-hal 1.0.0",
"embedded-hal-bus",
@@ -676,6 +694,8 @@ dependencies = [
"esp-bootloader-esp-idf",
"esp-hal",
"esp-println",
"heapless 0.9.2",
"ina3221",
"log",
"mipidsi",
]
@@ -832,6 +852,17 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "ina3221"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7553b95bc4d5b72e4a1e4d945364d83361eac2a5e1d88321cfb3d9281e01d937"
dependencies = [
"bitflags 1.3.2",
"embedded-hal 1.0.0",
"ohms",
]
[[package]]
name = "indexmap"
version = "2.13.0"
@@ -976,6 +1007,12 @@ dependencies = [
"memchr",
]
[[package]]
name = "ohms"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71d55b4d2ed96afaf7449a0bbf831c84bcd32e0a35c1ac22edb931decdd855a7"
[[package]]
name = "paste"
version = "1.0.15"