|
Post by seulater on Feb 8, 2014 8:24:43 GMT -8
So I downloaded the Gameduino2.zip library. But from that its clear that I am missing more source. What link did I miss in looking for how to use this ? For instance where is the code to set up the LCD, such as:
// Initialize the 480x272 panel. Ft_Gpu_Hal_Wr16( REG_HCYCLE, FT_DispHCycle); Ft_Gpu_Hal_Wr16( REG_HOFFSET, FT_DispHOffset); Ft_Gpu_Hal_Wr16( REG_HSYNC0, FT_DispHSync0); Ft_Gpu_Hal_Wr16( REG_HSYNC1, FT_DispHSync1); Ft_Gpu_Hal_Wr16( REG_VCYCLE, FT_DispVCycle); Ft_Gpu_Hal_Wr16( REG_VOFFSET, FT_DispVOffset); Ft_Gpu_Hal_Wr16( REG_VSYNC0, FT_DispVSync0); Ft_Gpu_Hal_Wr16( REG_VSYNC1, FT_DispVSync1); Ft_Gpu_Hal_Wr8( REG_SWIZZLE, FT_DispSwizzle); Ft_Gpu_Hal_Wr8( REG_PCLK_POL, FT_DispPCLKPol); Ft_Gpu_Hal_Wr8( REG_PCLK,FT_DispPCLK);//after this display is visible on the LCD Ft_Gpu_Hal_Wr16( REG_HSIZE, FT_DispWidth); Ft_Gpu_Hal_Wr16( REG_VSIZE, FT_DispHeight);
|
|
|
Post by jamesbowman on Feb 8, 2014 17:24:08 GMT -8
All the source is in Gameduino2.zip.
All initialization is handled by GD.begin(). The register initializations you have listed are not necessary for this panel; the hardware defaults to the values suitable for a 480x272 panel.
|
|