| Crates.io | mq2_pcf8563 |
| lib.rs | mq2_pcf8563 |
| version | 0.1.0 |
| created_at | 2026-01-23 15:02:01.691714+00 |
| updated_at | 2026-01-23 15:02:01.691714+00 |
| description | No-std MQ-2 gas sensor logic + PCF8563 RTC support |
| homepage | |
| repository | https://github.com/olatunbosunoyeleke94/mq2-pcf8563 |
| max_upload_size | |
| id | 2064704 |
| size | 27,689 |
Rust crate for reading MQ-2 gas sensor (ADC) + HZ-8563/PCF8563 RTC (I²C) on Arduino Uno / AVR.
Features:
[dependencies]
mq2_pcf8563 = "0.1.0"
[dependencies.arduino-hal]
git = "https://github.com/Rahix/avr-hal"
rev = "e5c8f37fe48419956e722490a82b9ca9b9fc61a2"
features = ["arduino-uno"]
See the examples/basic_logger.rs for a complete runnable binary that:
cargo run --example basic_logger --release
The example uses arduino-hal (git-dependency) and is not part of the published crate on crates.io. Its for development and testing only.
Licensed under either of
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Contributions are welcome! You can help by:
Test any new features or fixes on an Arduino with the MQ-2 sensor and PCF8563 RTC (or compatible hardware).