Can someone create updated libraries for the LED Shim for 64-bit Bookworm please?
While I’ve not tried it (not possessing the thing) I would imagine that following the manual install, while in the python venv, should work (it’s only i2c, after all)
This is beyond me; I think I should just go to the 32-bit OS to avoid issues. Wishing that this would be better supported though.
Seems to work fine for me on a Pi 5/64 bit Bookworm, this is what I did:
- Set up a virtual environment:
python3 -m venv --system-site-packages $HOME/.virtualenvs/pimoroni
- Switch to the virtual environment:
source ~/.virtualenvs/pimoroni/bin/activate
- Install the library from pip:
pip install ledshim
You may need to enable I2C if you haven’t got it enabled already:
sudo raspi-config nonint do_i2c 0
and if you want to download the examples you can do that with
git clone https://github.com/pimoroni/led-shim
Alternatively, it looks like there’s an updated version of the installer here, which should offer to set up the virtual environment and copy across the examples for you. You can install it with:
git clone https://github.com/pimoroni/led-shim -b repackage
cd led-shim
./install.sh --unstable
You’ll still need to switch to your venv before running examples with:
source ~/.virtualenvs/pimoroni/bin/activate
A bit of feedback on this installation method for 64bit PiOS.
I’ve just followed the steps tweaked for the ICM20948 module instead.
Works like a charm. Super thanks to @hel 👏