
MCP9808-RS
Plataforma del controlador de óxido agnóstico para el sensor de temperatura Microchip MCP9808.
2
Github Watches
5
Github Forks
11
Github Stars
mcp9808-rs
Rust MCP9808 Driver
This is a platform agnostic Rust driver for the MCP9808, based on the
embedded-hal
traits.
The Device
The MCP9808 digital temperature sensor converts temperatures between -20°C and +100°C to a digital word with ±0.5°C (max.) accuracy.
The device has an I²C interface and user-selectable settings such as Shutdown or low-power modes and the specification of temperature Event and Critical output boundaries.
Details and datasheet: http://www.microchip.com/wwwproducts/en/en556182
Status
Feature complete, but needs more testing.
- temperature register
- configuration register
- resolution register
- manufacturer ID and device ID
- temperature alert upper & lower
- critical temperature
Usage
Assuming you have a reference to the HAL's I2C bus:
let mut mcp9808 = MCP9808::new(i2c);
// how to read & write register
let mut conf = mcp9808.read_configuration().unwrap();
conf.set_shutdown_mode(ShutdownMode::Shutdown);
let _c = mcp9808.write_register(conf);
// read temperature register
let temp = mcp9808.read_temperature().unwrap();
temp.get_celsius(ResolutionVal::Deg_0_0625C)
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contributing
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
相关推荐
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Converts Figma frames into front-end code for various mobile frameworks.
Take an adjectivised noun, and create images making it progressively more adjective!
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Plataforma de automatización de flujo de trabajo de código justo con capacidades de IA nativas. Combine el edificio visual con código personalizado, auto-anfitrión o nube, más de 400 integraciones.
🧑🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.
Una lista curada de servidores de protocolo de contexto del modelo (MCP)
Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)
Reviews

user_XYM9zqA3
The MCP9808-RS by MrBuddyCasino is an outstanding product that offers reliable and precise temperature sensing capabilities. I have been using this application for a while now and it never fails to deliver accurate readings. The robust design and seamless integration make it a must-have for all MCP9808 sensor users. For more information, visit the project on GitHub. Highly recommended!