【文件属性】:
文件名称:lm75:用于传感器 LM75 的 Raspberry Pi C 驱动程序和 Python 绑定
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-30 20:14:49
C
LM75
用于传感器 LM75 的 Raspberry Pi C 驱动程序。
示例用法
C语言
# include " lm75.h "
# include < unistd>
# include < stdio>
int main ( int argc, char **argv){
char *i2c_device = " /dev/i2c-1 " ;
int address = 0x48 ;
void *lm = lm75_init (address, i2c_device);
if (lm != NULL ){
int i;
for (i = 0 ; i < 10 ; i++) {
float t = lm75_temperature (lm);
printf ( " t = %f \n " , t);
usleep ( 2 *
【文件预览】:
lm75-master
----MANIFEST.in(10B)
----LICENSE(1KB)
----tentacle_pi()
--------__init__.py(0B)
----src()
--------lm75.c(4KB)
--------test.c(379B)
--------lm75.h(260B)
--------lm75_ext.c(3KB)
--------Makefile(142B)
----examples()
--------test.py(209B)
----setup.py(388B)
----.gitignore(10B)
----README.md(780B)