Closed SubOptimal closed 1 year ago
I know it's not a perfect solution but I've helped myself by putting this file from the examples onto the Pico.
If you're using Thonny you can select the storage place as either Pico or PC and then select the Pico and make sure the file name stays the same.
The ssd1306.py
isn't a problem as it is provided in the library folder
https://github.com/sbcshop/PiSquare/blob/main/Run%20RaspberryPi%20HATs%20On%20PiSquare%20Using%20Sockets/Single%20Socket/library/ssd1306.py
Updating the MicroPython firmware on the PiSquare with this version https://github.com/sbcshop/PiSquare/blob/main/Run%20raspberry%20HAT's%20on%20PiSquare/Barcode%20HAT/firmware.uf2 solved the described issue for me.
This issue is of st7789 library, to resolve this query go through the below link - https://github.com/sbcshop/PiSquare/blob/main/Run%20raspberry%20HAT's%20on%20PiSquare/1.3%20Lcd%20HAT/firmware.uf2
The firmware includes frozen python font files and pre-compiled objects with the st7789 C driver for a variety of devices
Holding down the PiSquare BOTSEL button while dragging this file(firmware.uf2) into the mounted RP2 folder will allow you to load it.
I followed the instruction in sbcshop/PiSquare/Run RaspberryPi HATs On PiSquare Using Sockets.
When I run sbcshop/PiSquare/Run RaspberryPi HATs On PiSquare Using Sockets/Single Socket/pisquare_client_run_hat.py it fails with
ImportError: no module named 'st7789'
.The module is imported by sbcshop/PiSquare/Run RaspberryPi HATs On PiSquare Using Sockets/Single Socket/library/gpio_config.py#L10 but it's not included in this repository.
On the PiSquare following MicroPython version is installed.
It's the version which was preinstalled on the PiSquare.