stuff
This commit is contained in:
parent
1fc04a58a0
commit
bfb19321fd
@ -574,7 +574,10 @@
|
||||
"version": 3
|
||||
},
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_assignments": {
|
||||
"Net-(battery1-Pin_1)": "BAT-",
|
||||
"VBAT": "BAT+"
|
||||
},
|
||||
"netclass_patterns": [
|
||||
{
|
||||
"netclass": "3V",
|
||||
|
@ -18918,6 +18918,16 @@
|
||||
)
|
||||
(uuid "491f884a-ca01-4332-91f5-1fdea04f1b4a")
|
||||
)
|
||||
(text "Q is low due to reset being on ground -> in the same pot this prevents the charge cycle of another oscilator"
|
||||
(exclude_from_sim no)
|
||||
(at 467.106 32.766 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
)
|
||||
(uuid "535edc01-7355-4883-adfe-aeb4f4fbc903")
|
||||
)
|
||||
(text "Low Power supply"
|
||||
(exclude_from_sim no)
|
||||
(at 60.96 703.58 0)
|
||||
|
@ -69,12 +69,13 @@ strum = { version = "0.26.1", features = ["derive"] }
|
||||
once_cell = "1.19.0"
|
||||
measurements = "0.11.0"
|
||||
bq34z100 = "0.2.1"
|
||||
bitbang-hal = "0.3.2"
|
||||
|
||||
[patch.crates-io]
|
||||
esp-idf-hal = { git = "https://github.com/esp-rs/esp-idf-hal.git" }
|
||||
esp-idf-sys = { git = "https://github.com/empirephoenix/esp-idf-sys.git" }
|
||||
#esp-idf-sys = { git = "https://github.com/empirephoenix/esp-idf-sys.git" }
|
||||
#esp-idf-sys = { git = "https://github.com/esp-rs/esp-idf-sys.git" }
|
||||
esp-idf-svc = { git = "https://github.com/esp-rs/esp-idf-svc.git" }
|
||||
#esp-idf-svc = { git = "https://github.com/esp-rs/esp-idf-svc.git" }
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "0.31.3"
|
||||
|
@ -45,6 +45,8 @@ use esp_idf_svc::systime::EspSystemTime;
|
||||
use esp_idf_sys::{esp, gpio_hold_dis, gpio_hold_en, vTaskDelay, EspError};
|
||||
use one_wire_bus::OneWire;
|
||||
|
||||
use bitbang_hal;
|
||||
|
||||
use crate::config::{self, Config, WifiConfig};
|
||||
use crate::STAY_ALIVE;
|
||||
|
||||
@ -953,12 +955,13 @@ impl CreatePlantHal<'_> for PlantHal {
|
||||
fn create() -> Result<Mutex<PlantCtrlBoard<'static>>> {
|
||||
let peripherals = Peripherals::take()?;
|
||||
|
||||
|
||||
let i2c = peripherals.i2c0;
|
||||
let config = I2cConfig::new()
|
||||
.scl_enable_pullup(false)
|
||||
.sda_enable_pullup(false)
|
||||
.baudrate(10_u32.kHz().into())
|
||||
.timeout(Duration::from_millis(10).into);
|
||||
.baudrate(1_u32.kHz().into())
|
||||
.timeout(Duration::from_millis(10).into());
|
||||
let scl = peripherals.pins.gpio19;
|
||||
let sda = peripherals.pins.gpio20;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user