Updated toml crate versions, added electrodes to impedance structure.

This commit is contained in:
2026-02-12 18:09:42 +01:00
parent 04959ce9cb
commit de9f11e591
7 changed files with 150 additions and 136 deletions

View File

@@ -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]}
}