Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19eab6e

Browse files
committed
drivers/sensor/mcp9808: Add MCP9808 temperature sensor driver.
Add single-file module for the Microchip MCP9808 precision temperaturesensor. The module provides a class for reading the temperature and forconfiguring the sensor. It has type/value checking for some of thecritical parts of the configuration as well as a debug mode for easiertesting during development.It includes a test file designe to run directly on a board with a sensorconnected to test both the module and the sensor.Both module and tests file are thoroughly documented in the codedirectly. For more information read README.md onhttps://github.com/MarcoMiano/mip-mcp9808Signed-off-by: MarcoMiano <58668074+MarcoMiano@users.noreply.github.com>
1 parente4cf095 commit19eab6e

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)

[8]ページ先頭

©2009-2025 Movatter.jp