0

CPE w/ TFT Gizmo - TFT Candy Hearts Issues
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CPE w/ TFT Gizmo - TFT Candy Hearts Issues

by beardo_tech on Sat May 01, 2021 7:18 pm

Revisiting earlier TFT Candy Hearts project based on CP 5.0.0 Alpha. New Circuit Playground Express (CPE). Existing TFT Gizmo. Updated CPE bootloader. Basic test CPE standalone with CircuitPython works. Connected CPE & TFT Gizmo. Ran TFT Gizmo Test. Functions properly. Reconfigured for CircuitPython TFT Candy Hearts. Downloaded latest CircuitPython 6.2.0 for CPE and installed. Downloaded Project Bundle. Unzipped bundle and copied to CIRCUITPY drive. Launched Mu.

** First Issue REPL output (only showing Traceback and Errors):

code.py output:
Traceback (most recent call last):
File "code.py", line 3, in <module>
ImportError: no module named 'displayio'

==> Link in Learn Guide to CircuitPython does not link to respective displayio build for CPE (or CPB). Used link from Adafruit Circuit Playground TFT Gizmo Learn Guide. Downloaded respective CircuitPython with displayio for CPE (Note: Needed to scroll down on S3 listing to find released 6.2.0 version for consistency). Installed. Closed and relaunched Mu.

** Second Issue REPL Output:

code.py output:
Traceback (most recent call last):
File "code.py", line 7, in <module>
File "adafruit_gizmo/tft_gizmo.py", line 20, in <module>
ImportError: no module named 'adafruit_st7789'

==> Zip Bundle missing library files. Downloaded latest CircuitPython 6.x Libraries 20210430. Copied 'adafruit_st7789' to 'lib' folder. Closed and relaunched Mu.

** Third Issue REPL output:

code.py output:
Traceback (most recent call last):
File "code.py", line 8, in <module>
File "adafruit_circuitplayground/__init__.py", line 30, in <module>
File "adafruit_circuitplayground/express.py", line 49, in <module>
File "adafruit_circuitplayground/circuit_playground_base.py", line 53, in <module>
File "neopixel.py", line 44, in <module>
MemoryError: memory allocation failed, allocating 176 bytes

==> It was now time for a beverage...

Used default files provided in zip bundle. Note that I removed libraries related to BLE and Clue as I was only using CPE code.

beardo_tech
 
Posts: 17
Joined: Tue Sep 18, 2018 11:36 pm

Re: CPE w/ TFT Gizmo - TFT Candy Hearts Issues

by adafruit_support_carter on Mon May 03, 2021 3:15 pm

Link in Learn Guide to CircuitPython does not link to respective displayio build for CPE (or CPB).

The guide is based on the CPB. It looks like it links to the correct firmware for CPB?

Zip Bundle missing library files.

Hmmm. Seeing same thing. This is very new feature of the Learn Guides and still in works. Some part of the plumbing is probably broken for that. We'll look into it.

MemoryError: memory allocation failed, allocating 176 bytes

That particular project may only work on the CPB (or Clue). The CPX does not have enough memory.

adafruit_support_carter
 
Posts: 20609
Joined: Tue Nov 29, 2016 2:45 pm

Re: CPE w/ TFT Gizmo - TFT Candy Hearts Issues

by beardo_tech on Mon May 03, 2021 6:03 pm

Thanks for the reply.
Went through guide again with a CPB attached to the Gizmo.

Issue with Zip download bundle still exists. Can confirm the following three (3) files are missing:
'adafruit_st7789'
'adafruit_lis3dh'
'adafruit_thermistor'
Note that this affects both the BLE and Basic (non-BLE) code.

The other two issues were related to using the CPX. They did not occur with the CPB.
Thanks again.

beardo_tech
 
Posts: 17
Joined: Tue Sep 18, 2018 11:36 pm

Re: CPE w/ TFT Gizmo - TFT Candy Hearts Issues

by adafruit_support_carter on Mon May 03, 2021 6:54 pm

Here's the issue I opened relating to the library behavior, if you want to follow along.
https://github.com/adafruit/Adafruit_Ci ... /issues/16

adafruit_support_carter
 
Posts: 20609
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.