GithubHelp home page GithubHelp logo

Comments (10)

tbillion avatar tbillion commented on July 17, 2024 1

from adafruit_ili9341_menu.

tbillion avatar tbillion commented on July 17, 2024 1

from adafruit_ili9341_menu.

jaksatomovic avatar jaksatomovic commented on July 17, 2024

did you manage to port it to tft espi?

from adafruit_ili9341_menu.

KrisKasprzak avatar KrisKasprzak commented on July 17, 2024

I don't have immediate plans on supporting this library.

from adafruit_ili9341_menu.

KrisKasprzak avatar KrisKasprzak commented on July 17, 2024

If you are trying to port this lib to an adafruit based font's need to be passed by reference (use the & before the font name)

from adafruit_ili9341_menu.

jaksatomovic avatar jaksatomovic commented on July 17, 2024

Amazing! Could you and would you share the code maybe?

from adafruit_ili9341_menu.

jaksatomovic avatar jaksatomovic commented on July 17, 2024

Great! Thx a lot!

from adafruit_ili9341_menu.

jaksatomovic avatar jaksatomovic commented on July 17, 2024

@tbillion looking forward to see the code..thx

from adafruit_ili9341_menu.

tbillion avatar tbillion commented on July 17, 2024

ILI9341_t3_Menu-mainmodded.zip

sorry @jaksatomovic been a busy few weeks, and ended up getting a new laptop during the last cycle so i had to move and sort everything back out. here is the library that i have modified to work with @bodmers tft_espi. @KrisKasprzak might want to verify that i have done it to his standards because he is a pretty outstanding coder, it really just hacked out the ili and inserted the tft. it does work here works really well, but results may vary in different environments.

from adafruit_ili9341_menu.

KrisKasprzak avatar KrisKasprzak commented on July 17, 2024

I took a look at the code, and making it work for other display libs was done correctly. Replacing the data type is correct and how I suggest in the readme. Well done.

Basically change every instance of one library data type to another
EditMenu(Adafruit_ILI9341 *Display,bool EnableTouch = false);
to
EditMenu(YOUR_DISPLAY_LIB_TYPE *Display,bool EnableTouch = false);

TIP for future display library adaptions: Depending on the way the display library handles setting fonts you may or may not need to make code changes (passing by ref with the &)--and these changes will be throughout the .cpp and .h files. For this reason I was not able to use a template approach to make the code easier to use with other libs.

Implementation for Teensy library (ILI9341_t3) is:
d->setFont(titlef);

Implementation for Adafruit (and I suspect many others) is:
d->setFont(&titlef);

from adafruit_ili9341_menu.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.