tangled
alpha
login
or
join now
sachy.dev
/
strike-sensor
0
fork
atom
Repo for designs & driver for a TA7642 powered lightning detector
0
fork
atom
overview
issues
pulls
pipelines
Adjust PWM output to be around 10Khz for Pico driver
sachy.dev
1 month ago
bf89b2ca
589b83a1
0/1
test.yml
failed
4s
+6
-1
2 changed files
expand all
collapse all
unified
split
embassy-strike-driver
Cargo.toml
src
drivers.rs
+1
-1
embassy-strike-driver/Cargo.toml
···
8
8
rust-version.workspace = true
9
9
10
10
[features]
11
11
-
default = []
11
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
89
+
config.phase_correct = true;
90
90
+
config.divider = 48u8.into();
91
91
+
config.enable = true;
92
92
+
config.compare_b = 0;
89
93
let pwm = Pwm::new_output_b(slice, b, config.clone());
94
94
+
90
95
91
96
Self { pwm, config }
92
97
}