-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teensy + Audio Adaptor #136
Comments
Teensy 3.2 now confirmed operational using the above TFT with both the Adafruit_ILI9341 as well as a patched ILI9341_t3 library. Support has been added for both the default Teensy breakout connections in addition to the alternate breakout pinout to support the Teensy audio adapter. Touch support is provided by the XPT2046 driver. GUIslice was enhanced to support multiple font modes to enable both Adafruit-GFX and Teensy fonts. The above enhancements are present in the WIP136-Teensy branch. The remaining work is to confirm which ILI9341_t3 fork to use as the basis for GUIslice support and complete testing for the ILI9341_t3 fonts. In order to support the text justification in the GUI, some enhancements (primarily text width/height APIs) need to be rolled into the t3 library. My intention is to submit a PR for these enhancements into the PaulStoffregen/ILI9341_t3 library, but if they are not integrated, then we may use our own fork. |
Working with the same hardware as above and these libraries:
In PlatformIO, with these changes, it works for me: GUIslice_config.h: 89 teensy-adagfx-ili9341_t3-xpt2046-audio.h: 187 main.cpp:
Amazingly easy -- thanks Cal! |
I'm seeing unused variable warnings and am patching with
There is also this warning:
|
- Add support for Teensy 3.2 per #136 - Supports [PJRC ILI9341 TFT display](https://www.pjrc.com/store/display_ili9341.html) with default Teensy pinout as well as alternate pinout for Audio adapter - Supports **Adafruit_ILI9341** as well as the T3-optimized **[PaulStoffregen/ILI9341_t3](https://github.com/PaulStoffregen/ILI9341_t3)** display drivers - Supports Adafruit-GFX default font and the ILI9341_t3 fonts (need to call - Use of ILI9341_t3 fonts requires call to `gslc_FontSetMode(&m_gui, E_FONT_ENUM, GSLC_FONTREF_MODE_1);`. - **Important Note**: To use the T3-optimized ILI9341_t3 mode, the latest version of PaulStoffregen/ILI9341_t3 must be used (ie. not the version built-in to Teensyduino or from the Arduino IDE Library Manager). Please refer to [Installing ILI9341_t3 on Teensy](https://github.com/ImpulseAdventure/GUIslice/wiki/Install-ILI9341_t3-for-Teensy) for details. - Example configs added: - `teensy-adagfx-ili9341-xpt2046` - `teensy-adagfx-ili9341-xpt2046-audio` - `teensy-adagfx-ili9341_t3-xpt2046` - `teensy-adagfx-ili9341_t3-xpt2046-audio`
Great... thank you very much for testing out the Teensy updates and providing the thorough details! I have now merged in the changes from the WIP136-Teensy branch into master. I also integrated a few of the loose ends that you noted above, but feel free to let me know if you happen to catch anything else. ILI9341_t3 usageThe Adafruit_ILI9341 driver mode should run as-is without modifications. However, note that the use of the ILI9341_t3 optimized driver has a few differences from other Adafruit-GFX drivers, so some minor updates are required when t3 fonts are in use (most of which @pdupuy noted above). For example, GUIslice Builder generated code and certain examples may require some small adjustments. For details, please refer to: Using ILI9341_t3 on Teensy Some further updates may be made later to support the ILI9341_t3 mode more seamlessly (or alternately, include t3-specific examples). |
With this hardware:
And these libraries:
All "arduino" examples work in Arduino 1.8.7, with these exceptions:
When the following changes are made:
GUIslice_config.h: 84
#include "../configs/ard-adagfx-ili9341-xpt2046.h"
GUIslice_config.h: 123
Got
#error "Unknown device platform"
so I just commented out the entire Default section for now:ard-adagfx-ili9341-xpt2046.h: 81
Using pins in "Teensy 3.x Audio Board" Connections column:
ard-adagfx-ili9341-xpt2046.h: 120
GUIslice_drv_adagfx.cpp: 314
Must use these SPI.set methods as described in Usage with Audio Board Connections:
ard-adagfx-ili9341-xpt2046.h: 174
Enabled all optional features:
ard-adagfx-ili9341-xpt2046.h: 130
Set values from calibration utility:
The text was updated successfully, but these errors were encountered: