pimoroni / st7789-python

Python library to control an ST7789 240x240 1.3" TFT LCD display.
MIT License
198 stars 53 forks source link

What is the last version known working on Python2.7? ("TypeError: Non-Int/Long value in arguments: b66c13c8") #24

Closed josephernest closed 2 years ago

josephernest commented 2 years ago

I tried scrolling-test.py on a RPi4 with Python3 and it works.

For an old (unported to Py3) project, I need to make it work with Python 2.7. Unfortunately the current versions gives:

TypeError: Non-Int/Long value in arguments: b66c13c8.
 File "st.py", line 94, in <module>  
    disp.display(img)  
  File "/usr/local/lib/python2.7/dist-packages/ST7789/__init__.py", line 343, in display  
    self.data(pixelbytes[i:i + 4096])  
  File "/usr/local/lib/python2.7/dist-packages/ST7789/__init__.py", line 191, in data  
    self.send(data, True)  
  File "/usr/local/lib/python2.7/dist-packages/ST7789/__init__.py", line 170, in send  
    self._spi.xfer(chunk)  
  TypeError: Non-Int/Long value in arguments: b66c13c8.

Question: what is the last version of st7789-python known working with Python2?

josephernest commented 2 years ago

Python 2.7: Tested working with pip install st7789==0.0.3, also 0.0.2 and 0.0.1. Not working with 0.0.4.