Skip to content
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

Add mod version #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add mod version #83

wants to merge 2 commits into from

Conversation

ngxx-fus
Copy link

Hi!

This mod version of TFT_22_ILI9225.h is dev for quick draw an image with 16bitcolor-array instead of bitmap. In my point of view, it will easier for start or understand (or not). I also add draw line text function to quick draw a line text in TFT 2.2" screen.

Changed

  • Add function has been dev with Orientation = 0 (or 2)
  • By default, HSPI will be used under the object named spi_obj
  • Constructor function has been reduced to 2 parameters (for RST and RS pin)
  • Add begin() method with some default properties:
    • Orientation=0
    • BackgroundColor=0x0
    • Font=FreeSerif9pt7b
    • Start H-SPI
  • Add clearTextLine()
  • Add drawColorImage()
  • Add drawGFXTextLine() with two overload function, one for single text (msg), one using variadic template for multiple text (msg). I using template to make more flexible in passing variable without casting (in overload).

@ngxx-fus ngxx-fus changed the title add mod version Add mod version Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant