[Raspberry Pi] TSL2561光度計

  • 122
  • 0
  • 2018-11-23

adafruit_products_raspi_tsl2561_i2c_bb.jpg

更新python pip管理套件
sudo pip3 install --upgrade setuptools

安裝CircuitPython轉譯器,provide the layer that translates the CircuitPython hardware API to whatever library the Linux board provides.
sudo pip3 install adafruit-blinka

安裝sensor library
pip3 install adafruit-circuitpython-tsl2561

 

電源接3.3v,若要外接記得共同接地。

 

 

參考資料:

1. Installing CircuitPython on Raspberry Pi, https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi

2. /Adafruit_CircuitPython_TSL2561 github