Skip to content

Commit

Permalink
Initial ADC implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
H00pyFr00d committed Oct 10, 2024
1 parent 62f5419 commit d6e19e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/io/src/adc.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// ADC trait used to abstract the ADC peripheral
pub trait HypedADC {
// Read AIN value
// Return a voltage between 0 and 1.8V
fn readValue(&mut self) -> Option<f32>;
}
Empty file added lib/io/stm32l476rg/src/adc.rs
Empty file.

0 comments on commit d6e19e5

Please sign in to comment.