![]() ![]() The RP2040 PIO features only work with Earle Philhower's board package, NOT the Arduino Mbed version. Touch screens and pixel read operations are not supported when the PIO interface is used. The PIO can optionally be used for SPI interface displays if #define RP2040_PIO_SPI is put in the setup file. The PIO now manages the "setWindow" and "block fill" actions, releasing the processor for other tasks when areas of the screen are being filled with a colour. The RP2040 8-bit parallel interface uses the PIO. Tft.fillRectVGradient(x, y, w, h, color1, color2) Tft.fillRectHGradient(x, y, w, h, color1, color2) The library contains two new functions for rectangles filled with a horizontal or vertical coloured gradient: This is based on VB macros created by Kris Kasprzak here. Users of PowerPoint experienced with running macros may be interested in the pptm sketch generator here, this converts graphics and tables drawn in PowerPoint slides into an Arduino sketch that renders the graphics on a 480x320 TFT. Examples have also been added to display PNG compressed images (note: requires ~40kbytes RAM). New anti-aliased graphics functions to draw lines, wedge shaped lines, circles and rounded rectangles. Note: background rendering for Smooth fonts is also now available when using the print stream e.g. Spr.setTextColor(TFT_BLUE, TFT_BLACK, true) Tft.setTextColor(TFT_WHITE, TFT_BLUE, true) The default is false if the parameter is missing, Examples: This is a "breaking" change for some sketches because a new true/false parameter is needed to render the background. This is achieved by a line-by-line and block-by-block update of the glyph area without drawing pixels twice. Smooth fonts can now be rendered direct to the TFT with very little flicker for quickly changing values. Tested with v2.0.3 RC1 of the ESP32 board package. Support for the ESP32-S2, ESP32-S3 and ESP32-C3 has been added (DMA only on ESP32 S3 at the moment). DMA with 16-bit transfers is also supported. The use of the RP2040 PIO makes it easy to change the write cycle timing for different displays. This has been tested and the screen update performance is very good (4ms to clear 320 x 480 screen with HC8357C). Support has been added in v2.4.70 for the RP2040 with 16-bit parallel displays. These examples require a new support library here: New GUI examples have been added for sliders, buttons, graphs and meters. ![]() Here is a demo screen where a single 12kbyte font file binary was used to render fully anti-aliased glyphs of gradually increasing size on a 320x480 TFT screen: I have added TFT_eSPI specific examples to the OpenFontRender library and tested on RP2040 and ESP32 processors, the ESP8266 does not have sufficient RAM due to the glyph render complexity. Left, middle and right justified text can also be printed to the screen. The library provides access to compact font files, with fully scaleable anti-aliased glyphs. Here the smooth arcs have been used to create anti-aliased meter gauges on a 320x240 TFT:Īn excellent new compatible library is available which can render TrueType fonts on a TFT screen (or into a sprite). Here are two demo images, on the left smooth (anti-aliased) arcs with rounded ends, the image to the right is the same resolution (grabbed from the same 240x240 TFT) with the smoothing diasbled (no anti-aliasing): The arc drawing algorithm uses an optimised fixed point sqrt() function to improve performance on processors that do not have a hardware Floating Point Unit (e.g. Arcs can be drawn with or without anti-aliasing (which will then render faster). ![]() New sketches are provided in the "Smooth Graphics" examples folder. New functions have been added to draw smooth (antialiased) arcs, circles, and rounded rectangle outlines. The "RPi" interface style boards are now supported with the ESP32 S3. New board setup files have been added for the Seeed XIAO with round display, LilyGo T-Embed S3, LilyGo_T_QT_Pro_S3, ESP32 S3 Box and ESP32_S3_Box_Lite. The automatic opening of the font folder can also be disabled within the Processing sketch. The Create_font Processing sketch has been updated to automatically create a complete C header file. Use the "Issues" tab only for problems with the library. A "Discussions" facility has been added for Q&A etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |