Repo for designs & driver for a TA7642 powered lightning detector

Adjust PWM output to be around 10Khz for Pico driver

+6 -1
+1 -1
embassy-strike-driver/Cargo.toml
··· 8 8 rust-version.workspace = true 9 9 10 10 [features] 11 - default = [] 11 + default = ["rp2040"] 12 12 debug = ["defmt"] 13 13 alloc = [] 14 14 heapless = ["dep:heapless"]
+5
embassy-strike-driver/src/drivers.rs
··· 86 86 { 87 87 let mut config = pwm::Config::default(); 88 88 config.top = u8::MAX as u16; 89 + config.phase_correct = true; 90 + config.divider = 48u8.into(); 91 + config.enable = true; 92 + config.compare_b = 0; 89 93 let pwm = Pwm::new_output_b(slice, b, config.clone()); 94 + 90 95 91 96 Self { pwm, config } 92 97 }