mcp9808:用于传感器 MCP9808 的 Raspberry Pi C 驱动程序和 Python 绑定

时间:2021-05-30 19:51:46
【文件属性】:
文件名称:mcp9808:用于传感器 MCP9808 的 Raspberry Pi C 驱动程序和 Python 绑定
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-30 19:51:46
C MCP9808 用于传感器 MCP9808 的 Raspberry Pi C 驱动程序和 Python 绑定。 示例用法 C语言 # include " mcp9808.h " # include < unistd> # include < stdio> int main ( int argc, char **argv){ char *i2c_device = " /dev/i2c-2 " ; int address = 0x18 ; void *s = mcp9808_init (address, i2c_device); if (s != NULL ){ int i; for (i = 0 ; i < 10 ; i++) { float t = mcp9808_temperature (s); printf ( " temperatur
【文件预览】:
mcp9808-master
----setup.py(237B)
----.gitignore(10B)
----src()
--------Makefile(145B)
--------mcp9808.h(273B)
--------test.c(399B)
--------mcp9808.c(4KB)
--------mcp9808_ext.c(4KB)
----MANIFEST.in(10B)
----LICENSE(1KB)
----examples()
--------test.py(227B)
----README.md(835B)
----tentacle_pi()
--------__init__.py(0B)

网友评论