9 Commits

Author SHA1 Message Date
ivmarkov
17790a01db Fix ADC build issues on earlier released ESP-IDF 5.X; fix unexpected cfgs warnings in examples 2025-03-24 08:11:27 +00:00
Jagoda Estera Ślązak
6c3cc56df6
feat: add DB_12 adc attenuation and deprecate DB_11 for ESP-IDF V5.0+ (#520)
* feat: add `DB_12` adc attenuation and deprecate `DB_11` for ESP-IDF V5.0+

* fix: allow usages of deprecated `DB_11` in adc.rs

* fix: in adc example, use DB_11 for ESP-IDF v4 and DB_12 for ESP-IDF v5

---------

Co-authored-by: ivmarkov <ivan.markov@gmail.com>
2025-03-13 20:27:58 +02:00
ivmarkov
7632fc39db
Bugfix: drop calibration handle on driver drop; more control on the r… (#470)
* Bugfix: drop calibration handle on driver drop; more control on the raw-to-mv conversion

* Fix variable name

* Rename raw_to_cal to raw_to_mv to have less confusion as to what is going on

* Fix inline example

* Fix CI for the legacy driver

* Fix CI for the oneshot driver

* Fix examples in CI

* Fix wrong fn name
2024-12-22 18:40:03 +02:00
ivmarkov
f20b9f71a5 Replace with 2024-06-16 07:50:15 +00:00
ivmarkov
e3e8a37807 Hide the new ADC oneshot driver behind a feature flag 2024-06-16 07:35:35 +00:00
ivmarkov
bb92e2a47e Async examples 2023-10-14 07:36:30 +00:00
ivmarkov
53a48597d8 fix CI 2023-09-19 06:49:47 +00:00
ivmarkov
356f9f8218 Fix CI 2023-09-18 06:12:09 +00:00
liebman
95dfc2f9f7
Adc oneshot driver (#302)
* esp-idf v5 Adc oneshot driver

* cargo fmt

* added example & cargo fmt

* fix clippy issues

* more clippy's

* even more clippy's

* handle most review comments

* AdcChannelDriver: remove ADC annotation - use T::Adc
AdcChannelDriver: remove Sync implementation
examples: update adc_oneshot

* cargo fmt
remove AdcChannelDriver::channel

* implement e-hal 0.2 Adc OneShot trait
2023-09-18 06:59:54 +03:00