Skip to content

Instantly share code, notes, and snippets.

@fjctp
Last active November 1, 2020 16:44
Show Gist options
  • Save fjctp/452bb24c2be010f4de67e1b0aa234052 to your computer and use it in GitHub Desktop.
Save fjctp/452bb24c2be010f4de67e1b0aa234052 to your computer and use it in GitHub Desktop.
Using sense hat in Ubuntu Sever 20.04
  1. Ensures that the Industial I/O Core module is not loaded.

The modules blacklisted here takes over the pressure and magnetic sensors of the Sense HAT device which prevents other applications from using those sensors.

Create the file /etc/modprobe.d/blacklist-industialio.conf with the following contents:

blacklist st_magn_spi
blacklist st_pressure_spi
blacklist st_sensors_spi
blacklist st_pressure_i2c
blacklist st_magn_i2c
blacklist st_pressure
blacklist st_magn
blacklist st_sensors_i2c
blacklist st_sensors
blacklist industrialio_triggered_buffer
blacklist industrialio

from https://github.com/J-Pai/EnvTrackerNode

  1. Build RTIMULib from source
git clone https://github.com/RPi-Distro/RTIMULib
cd RTIMULib/Linux/python
python setup.py build
python setup.py install
  1. add user to i2c group
sudo addgroup ubuntu input
sudo addgroup ubuntu i2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment