You must enable i2c:
- i2c:
sudo raspi-config nonint do_i2c 0
You can optionally run sudo raspi-config
or the graphical Raspberry Pi Configuration UI to enable interfaces.
We've created an easy installation script that will install all pre-requisites and get your BH1745 up and running with minimal efforts. To run it, fire up Terminal which you'll find in Menu -> Accessories -> Terminal on your Raspberry Pi desktop, as illustrated below:
In the new terminal window type the command exactly as it appears below (check for typos) and follow the on-screen instructions:
Stable library and dependencies from GitHub:
git clone https://github.com/pimoroni/mics6814-python
cd mics6814-python
sudo ./install.sh
Latest/development library and dependencies from GitHub:
git clone https://github.com/pimoroni/mics6814-python
cd mics6814-python
sudo ./install.sh --unstable
Note Libraries will be installed in the "pimoroni" virtual environment, you will need to activate it to run examples:
source ~/.virtualenvs/pimoroni/bin/activate
- In your Python Virtual Environment, run
pip install pimoroni-mics6814