mirror of
https://github.com/hubaldv/bioz-firmware-rs.git
synced 2026-03-10 01:30:31 +00:00
Updated toml crate versions, added electrodes to impedance structure.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use embassy_embedded_hal::shared_bus::blocking::i2c::I2cDevice;
|
||||
use embassy_stm32::{i2c::I2c, mode::Blocking};
|
||||
use embassy_stm32::{i2c::I2c, mode::Blocking, i2c::Master};
|
||||
use embassy_sync::blocking_mutex::raw::NoopRawMutex;
|
||||
|
||||
use embedded_hal_1::i2c::I2c as _;
|
||||
@@ -99,13 +99,13 @@ enum LDSW {
|
||||
}
|
||||
|
||||
pub struct ADG2128 {
|
||||
i2c: I2cDevice<'static, NoopRawMutex, I2c<'static, Blocking>>,
|
||||
i2c: I2cDevice<'static, NoopRawMutex, I2c<'static, Blocking, Master>>,
|
||||
address: u8,
|
||||
states_xy: [u8; 12]
|
||||
}
|
||||
|
||||
impl ADG2128 {
|
||||
pub fn new(i2c: I2cDevice<'static, NoopRawMutex, I2c<'static, Blocking>>, address: u8) -> Self {
|
||||
pub fn new(i2c: I2cDevice<'static, NoopRawMutex, I2c<'static, Blocking, Master>>, address: u8) -> Self {
|
||||
ADG2128 { i2c, address, states_xy: [0u8; 12]}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user