jjzjj

tempGpio

全部标签

android - 使用 Android Things 通过 DHT11 读取温度

我正在使用Raspberrypi3和DHT11传感器进行温度监测项目。我有以下引脚位置VCC到引脚号:2接地引脚号:6输出到GPIO:BCM22即引脚15我用过的代码:publicclassWeatherStationActivityextendsActivity{privateHandlermHandler=newHandler();privateTextViewmTxtStatus;privatePeripheralManagerServiceservice=newPeripheralManagerService();privateGpiotempGpio;privateinti=