Skip to content

Commit d2bedc6

Browse files
committed
- split the settings for EVE_RiTFT70 and EVE_RiTFT50
1 parent f67c44c commit d2bedc6

File tree

2 files changed

+35
-17
lines changed

2 files changed

+35
-17
lines changed

EVE_config.h

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@file EVE_config.h
33
@brief configuration information for some TFTs
44
@version 5.0
5-
@date 2021-12-27
5+
@date 2022-02-20
66
@author Rudolph Riedel
77
88
@section LICENSE
@@ -73,6 +73,8 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH
7373
- converted all TABs to SPACEs
7474
- removed EVE_TOUCH_RZTHRESH as it only applies to resistive touch screens and as EVE_init() still writes it if the define exists in can be configured thru project options
7575
- added EVE_Display_Parameters_t to be used with an additional init function, still not sure how to procede exactly
76+
- split the settings for EVE_RiTFT70 and EVE_RiTFT50 after a report for the EVE_RiTFT70 not working properly and confirmation
77+
that the provided alternative parameters do work, the EVE_RiTFT50 however are confirmed to be working with the IOT5
7678
7779
*/
7880

@@ -617,29 +619,45 @@ typedef struct
617619
#endif
618620

619621

620-
/* untested */
622+
/* untested but confirmed to be working */
621623
/* RVT50xQBxxxxx 800x480 5.0" Riverdi, various options, BT815/BT816 */
624+
/* not working properly? try the EVE_RiTFT70 profile */
625+
#if defined (EVE_RiTFT50)
626+
#define EVE_HSIZE (800L)
627+
#define EVE_VSIZE (480L)
628+
629+
#define EVE_VSYNC0 (0L)
630+
#define EVE_VSYNC1 (10L)
631+
#define EVE_VOFFSET (23L)
632+
#define EVE_VCYCLE (525L)
633+
#define EVE_HSYNC0 (0L)
634+
#define EVE_HSYNC1 (10L)
635+
#define EVE_HOFFSET (46L)
636+
#define EVE_HCYCLE (1056L)
637+
#define EVE_PCLK (2L)
638+
#define EVE_PCLKPOL (1L)
639+
#define EVE_SWIZZLE (0L)
640+
#define EVE_CSPREAD (1L)
641+
#define EVE_HAS_CRYSTAL
642+
#define EVE_GEN 3
643+
#endif
644+
645+
646+
/* untested but confirmed to be working */
622647
/* RVT70xQBxxxxx 800x480 7.0" Riverdi, various options, BT815/BT816 */
623-
#if defined (EVE_RiTFT70) || defined (EVE_RiTFT50)
624-
#define EVE_HSIZE (800L) /* Thd Length of visible part of line (in PCLKs) - display width */
625-
#define EVE_VSIZE (480L) /* Tvd Number of visible lines (in lines) - display height */
648+
/* not working properly? try the EVE_RiTFT50 profile */
649+
#if defined (EVE_RiTFT70)
650+
#define Resolution_800x480
626651

627-
#define EVE_VSYNC0 (0L) /* Tvf Vertical Front Porch */
628-
#define EVE_VSYNC1 (10L) /* Tvf + Tvp Vertical Front Porch plus Vsync Pulse width */
629-
#define EVE_VOFFSET (23L) /* Tvf + Tvp + Tvb Number of non-visible lines (in lines) */
630-
#define EVE_VCYCLE (525L) /* Tv Total number of lines (visible and non-visible) (in lines) */
631-
#define EVE_HSYNC0 (0L) /* Thf Horizontal Front Porch */
632-
#define EVE_HSYNC1 (10L) /* Thf + Thp Horizontal Front Porch plus Hsync Pulse width */
633-
#define EVE_HOFFSET (46L) /* Thf + Thp + Thb Length of non-visible part of line (in PCLK cycles) */
634-
#define EVE_HCYCLE (1056L) /* Th Total length of line (visible and non-visible) (in PCLKs) */
635-
#define EVE_PCLK (2L) /* 72MHz / REG_PCLK = PCLK frequency 30 MHz */
636-
#define EVE_PCLKPOL (1L) /* PCLK polarity (0 = rising edge, 1 = falling edge) */
637-
#define EVE_SWIZZLE (0L) /* Defines the arrangement of the RGB pins of the FT800 */
652+
#define EVE_PCLK (2L)
653+
#define EVE_PCLKPOL (1L)
654+
#define EVE_SWIZZLE (0L)
638655
#define EVE_CSPREAD (1L)
639656
#define EVE_HAS_CRYSTAL
640657
#define EVE_GEN 3
641658
#endif
642659

660+
643661
/* untested */
644662
/* RVT50HQBxxxxx 800x480 5.0" Riverdi, various options, BT817 */
645663
#if defined (EVE_RVT50H)

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "EmbeddedVideoEngine",
3-
"version": "5.0.2",
3+
"version": "5.0.3",
44
"keywords": "TFT, SPI, EVE2, EVE3, EVE4 ,Bridgetek, F81x, FT813, BT81x, BT815, BT817",
55
"description": "Code library for EVE2/EVE3/EVE4 graphics controller ICs from FTDI/Bridgetek",
66
"repository": {

0 commit comments

Comments
 (0)