Skip to content

Commit 19eab6e

Browse files
committed
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 https://github.com/MarcoMiano/mip-mcp9808 Signed-off-by: MarcoMiano <58668074+MarcoMiano@users.noreply.github.com>
1 parent e4cf095 commit 19eab6e

File tree

3 files changed

+1103
-0
lines changed

3 files changed

+1103
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
metadata(
2+
description="Microchip MCP9808 temperature sensor driver",
3+
version="1.0.0",
4+
license="MIT",
5+
author="Marco Miano",
6+
)
7+
8+
# opt=2 so line numbers are preserved in case of exceptions
9+
module("mcp9808.py", opt=2)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy