|
Post by MangyDog on Jul 28, 2017 3:19:44 GMT -8
Hi im still having some trouble. i managed to get it to display something now. And Setting PD high got it to turn on...
Im currently testing with a Hotmcu HAOYU Electronics FT800CB for HY43B/50B it also has the FT810CB sticker on it so i assume its the same 480x272 display but on a FT810 chip.
Well i managed to get it to turn on however, it looks like its out of sync. The touch calibration has a touch here marker in the middle. With tap the dot on the top of the screen and botton, the dot is in the centre and thers a faded line that i think should bt pixel row 0 near te middle too.... as i said i think its a sync issue.
As James mentions in another thread the library checks what chip is being used and adjusts the settings. But assumes that 810 is running at the higher res screen?
How do i force it to run with the lower res screen?
|
|
|
Post by tftlcdcyg on Jul 28, 2017 3:38:24 GMT -8
1 Put some pictures of yours FT8XX 2 What library do you used?
Maybe you need adjust the properties of the screen, accord the datasheet and insert a flag in order to select the right parameters. Something like this:
if (TFT_FT81X_ENABLE == 1) { // ****************************************************************************************** // REGISTOS CORRECTOS PARA FT813 20 JULIO DE 2017 Julio C. González (TFTLCDCyg) // ******************************************************************************************
#if(SCREEN_FT81X == 13) { GD.wr32(REG_HCYCLE, 1000);//548 GD.wr32(REG_HOFFSET, 46); GD.wr32(REG_HSIZE, 800); GD.wr32(REG_HSYNC0, 0); GD.wr32(REG_HSYNC1, 41); GD.wr32(REG_VCYCLE, 525); GD.wr32(REG_VOFFSET, 23); GD.wr32(REG_VSIZE, 480); GD.wr32(REG_VSYNC0, 0); GD.wr32(REG_VSYNC1, 10); GD.wr32(REG_DITHER, 0); GD.wr32(REG_PCLK_POL, 1);//1 GD.wr32(REG_PCLK, 2);//5 //GD.wr(REG_ROTATE, 0); //GD.wr(REG_SWIZZLE, 0);//3 for GD2 }
#endif
// ****************************************************************************************** // REGISTOS CORRECTOS PARA FT810 24 JUNIO DE 2017 Tomas F. LINARES (lightcalamar) // ******************************************************************************************
#if(SCREEN_FT81X == 10) { GD.wr32(REG_HCYCLE, 900);//548 GD.wr32(REG_HOFFSET, 43); GD.wr32(REG_HSIZE, 800); GD.wr32(REG_HSYNC0, 0); GD.wr32(REG_HSYNC1, 41); GD.wr32(REG_VCYCLE, 500); GD.wr32(REG_VOFFSET, 12); GD.wr32(REG_VSIZE, 480); GD.wr32(REG_VSYNC0, 0); GD.wr32(REG_VSYNC1, 10); GD.wr32(REG_DITHER, 1); GD.wr32(REG_PCLK_POL, 1);//1 GD.wr32(REG_PCLK, 3);//5 GD.wr(REG_ROTATE, 0); GD.wr(REG_SWIZZLE, 0);//3 for GD2 }
#endif
}
|
|
|
Post by MangyDog on Jul 28, 2017 3:52:48 GMT -8
I cant put any pictures up at the moment, no camera handy...
But yes i think its something along that lines. Where do I put those parameters? And any suggestions what to put in for my screen?
|
|
|
Post by MangyDog on Jul 28, 2017 4:52:23 GMT -8
Also when i run the self test i get clock:fail
So yeah i think its some sort of signal sinc issue... what should the display settings be for the hotmcu screens?
|
|
|
Post by MangyDog on Jul 28, 2017 5:15:01 GMT -8
as it turns out i might have the 800x480 model.........
|
|
|
Post by MangyDog on Jul 28, 2017 5:24:24 GMT -8
Right running some of the examples with 800x480 res (as thats what i seem to have ) The sketches seem to run in the top left area of the screen... Are the sketches designed for a 480x320/272 display in mind? I cant seen to find any variables in the sketches themselves for the area they are set in.
|
|
|
Post by lightcalamar on Jul 28, 2017 6:54:52 GMT -8
Currently working with MCU's STM32 with library that we have modified from GD2. I have 9 screens all buy in HOTMCU and all work very well, 3 FT800, 3 FT810 and 3 FT811, in library parameters are defined whether the resolution of the same connected, no automatic form.
What MCU's do you work on your screen?
I also insist, you can do some pictures?
|
|
|
Post by tftlcdcyg on Jul 28, 2017 8:58:28 GMT -8
Or some link to the TFT do you have...
|
|
|
Post by MangyDog on Jul 29, 2017 2:43:51 GMT -8
Yeah its ok i fixed it Its the res. Its 800x480 Im using the HOTMCU 5inch display
|
|