Illegal Instruction with Mini PiTFT 1.3" - 240x240

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
plebel
 
Posts: 3
Joined: Tue Jan 11, 2022 12:58 am

Illegal Instruction with Mini PiTFT 1.3" - 240x240

Post by plebel »

Hi there!
I'm new to posting here. I bought a Mini-TFT 240x240 display and I'm having troubles getting started.
https://www.adafruit.com/product/4484#technical-details.

I'm running a raspberry pi zero W with a fresh install of Raspberry Pi OS Lite. Here are the commands I ran on the fresh install:

Code: Select all

sudo apt-get install python3-venv
python3 -m venv magic
sudo apt-get upgrade
sudo apt update
sudo apt dist-upgrade -y
source magic/bin/activate
pip3 install adafruit-circuitpython-st7789
Now, in a python 3.7 terminal when I try to import the module I get:

Code: Select all

>>> import adafruit_st7789
Illegal instruction
Any ideas? I read on other forums that the illegal instruction error means the module I'm importing was compiled for the wrong OS. It's entirely possible I failed at following the instructions correctly from here https://github.com/adafruit/Adafruit_Ci ... hon_Bundle.

Thanks!

Paul

User avatar
plebel
 
Posts: 3
Joined: Tue Jan 11, 2022 12:58 am

Re: Illegal Instruction with Mini PiTFT 1.3" - 240x240

Post by plebel »

Hi Adafruit,
Any thoughts on this? I'm stuck not being able to run your Mini PiTFT :-(
Thanks,

Paul

User avatar
adafruit_support_carter
 
Posts: 29469
Joined: Tue Nov 29, 2016 2:45 pm

Re: Illegal Instruction with Mini PiTFT 1.3" - 240x240

Post by adafruit_support_carter »

Try setting up the software installs per the guide here:
https://learn.adafruit.com/adafruit-min ... i/overview

User avatar
plebel
 
Posts: 3
Joined: Tue Jan 11, 2022 12:58 am

Re: Illegal Instruction with Mini PiTFT 1.3" - 240x240

Post by plebel »

Thanks - it's working now! I somehow missed this tutorial link before, and got to the circuit python bundle installation, which includes the ST7789 library module.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”