在Raspberry PI上的实现: 使用Raspberry Pi与I2C接口相连的好处在于Python终端的交互性。我使用的是在Raspbian发行版上启用了I2C的Raspberry Pi 4。确保你的GPIO支持3V3、GND、SDA并且SCL支持MCP9808上的正确引脚。在Raspbian中打开终端并执行以下三个命令: python from smbus import SMBus bus = SMBus(1) 该命令将...
2branches2tags Code Clone HTTPSGitHub CLI Download ZIP Failed to load latest commit information. MCP9808 Raspberry Pi C driver and Python bindings for the sensor MCP9808. Example Usage C language #include"mcp9808.h"#include<unistd.h>#include<stdio.h>intmain(intargc,char**argv){char*i2c_devi...
If you are using Raspberry Pi with Raspberrypi OS >= Bullseye, you have to use this command line only with Python3. Step 1. Follow Setting Software to configure the development environment and install the grove.py to your raspberry pi. Step 2. Excute below commands to run the code. ...
raspberry-pi adafruit-mcp9808 Updated Mar 23, 2020 Python Improve this page Add a description, image, and links to the adafruit-mcp9808 topic page so that developers can more easily learn about it. Curate this topic Add this topic to your repo To associate your repository with the...
在Raspberry PI上的实现: 使用Raspberry Pi与I2C接口相连的好处在于Python终端的交互性。我使用的是在Raspbian发行版上启用了I2C的 Raspberry Pi 4 。确保你的GPIO支持3V3、GND、SDA并且SCL支持MCP9808上的正确引脚。在Raspbian中打开终端并执行以下三个命令: ...
Python Download and install smbus library on Raspberry pi. Steps to install smbus are provided at: https://pypi.python.org/pypi/smbus-cffi/0.5.1 Download (or git pull) the code in pi. Run the program. $> python MCP9808.py Arduino ...