adafruit

Trouble installing Adafruit's DHT11 Python library

喜你入骨 提交于 2019-12-13 20:22:17
问题 I followed these instructions to install the Adafruit DHT11 library (https://github.com/adafruit/Adafruit_Python_DHT): git clone https://github.com/adafruit/Adafruit_Python_DHT.git cd Adafruit_Python_DHT sudo apt-get install build-essential python-dev sudo python setup.py install And I found the library installed under /home/pi (I'm working with a Raspberry Pi 3 ). The file I want to fun is in /home/pi/Desktop so I move the library into that directory. However, I still can't run my python

How to publish data in adafruit using MQTT Android?

风格不统一 提交于 2019-12-11 23:43:55
问题 I want to update the toggle switch in adafruit from android app using MQTT, i want to publish as well as subscribe to toggles but after connection through mqtt protocols during publish it shows a error " AlarmPingSender: Unregister alarmreceiver to MqttServicepaho196825347016729 " Android App is properly connecting to adafruit server but when i am trying to publish or subscribing its showing error public class MainActivity extends AppCompatActivity { String TAG="MQTT"; TextView tvview; Button

Adafruit raspberry-pi neopixel library throws error “ImportError: No module named _rpi_ws281x”

淺唱寂寞╮ 提交于 2019-12-11 07:46:29
问题 I ran into this problem when following the Adafruit Neopixel tutorial: https://learn.adafruit.com/neopixels-on-raspberry-pi/python-usage I double checked having all the requirements installed but still got an error: ImportError: No module named _rpi_ws281x It took me quite a while to piece the solution together that's why I wanted to document it here. See answer below. 回答1: The solution is to rebuild and reinstall the rpi_ws281x library from the source (as suggested in various github issues e

ESP32 direct port manipulation

做~自己de王妃 提交于 2019-12-01 00:24:44
Dear StackOverflowers, I am trying to use HX8357D 3.5" TFT from Adafruit ( link ) with an esp32. The TFT driver has two interfaces: SPI and 8-bit parallel. The provided library from Adafruit ( link ) only supports SPI on the esp32. I need to have higher display speeds, so I decided to try and add support for the esp32 myself. I'm not experienced at all with this kind of programming, but I liked the challenge. I figured out how the 8-bit interface work by reverse engineering the Arduino Uno/Mega support. To add the esp32 support I need a way to directly manipulate the registers controlling the