Skip to content

Commit

Permalink
use my own ina219_rs driver
Browse files Browse the repository at this point in the history
  • Loading branch information
sndnvaps committed Sep 25, 2022
1 parent e25d02c commit 859ca98
Show file tree
Hide file tree
Showing 3 changed files with 344 additions and 2 deletions.
342 changes: 342 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
linux-embedded-hal = "0.2"
ina219 = { git = "https://gitee.com/sndnvaps/ina219.git" , branch="master" }
ina219_rs = "0.2.1"


ctrlc = "3.2.3"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

extern crate linux_embedded_hal as hal;

extern crate ina219;
extern crate ina219_rs as ina219;

use hal::I2cdev;
use ina219::physic;
Expand Down

0 comments on commit 859ca98

Please sign in to comment.