Skip to content

drivers/sensor/mcp9808: Add MCP9808 temperature sensor driver. #958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
drivers/sensor/mcp9808: Add MCP9808 temperature sensor driver.
Add single-file module for the Microchip MCP9808 precision temperature sensor. The module provides a class for reading the temperature and for configuring the sensor. It has type/value checking for some of the critical parts of the configuration as well as a debug mode for easier testing during development. It includes a test file designe to run directly on a board with a sensor connected to test both the module and the sensor. Both module and tests file are thoroughly documented in the code directly. For more information read README.md on MarcoMiano/mip-mcp9808 Signed-off-by: MarcoMiano <58668074+MarcoMiano@users.noreply.github.com>
  • Loading branch information
MarcoMiano committed Jan 1, 2025
commit 0d2e56c7e8edbe70db867fd684133eeec6a971db
9 changes: 9 additions & 0 deletions micropython/drivers/sensor/mcp9808/manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
metadata(
description="Microchip MCP9808 temperature sensor driver",
version="1.0.0",
license="MIT",
author="Marco Miano",
)

# opt=2 so line numbers are preserved in case of exceptions
module("mcp9808.py", opt=2)
Loading
Loading