I was wondering if it is possible to use the sense hat on ubuntu. I recently bought a pi 8gb and found out that raspian is only 32 bit thus would not allow me to use all 8gb of ram so I switched to a ubuntu build for the pi that is 64 bit but have found that the sense hat package isn't there. I've tried searching around and haven't found much. Any ideas?
Note as addition to the below, you can now download the packages from the emulators author documented here
sudo add-apt-repository ppa://waveform/ppa $ sudo apt-get update $ sudo apt-get install python-sense-emu python3-sense-emu sense-emu-tools
Please take care using any repository if you do not know the author!
Sorry this is a series of links but I do not know a simple answer for this device.
The sense hat is just a series of displays, switches and sensors nicely packaged on one board:
- 8 × 8 RGB LED matrix
- a five – button joystick
- Barometric pressure
with a Python library to wrap all the data behind an easy to use interface. The ports used by this hat can be seen here in my old answer.
The first thing I would try is the Ubuntu equivalent of
sudo apt install sense-hat to see if that gets you the Python library.
If that library is not available then details on installing it can be found on GitHub issue #79 here
It is important to follow that thread carefully ESPECIALLY the blacklist details on this thread.
I would actually recommend the 64-Bit version of Raspberry Pi OS or stick with the hybrid 64-bit kernel / 32-user space a little longer as these are better supported by the RPT/RPF software than other operating systems.