Search Results
Search results 1-6 of 6.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
FIL pFile; int APP_GetData(void * p, const U8 * * ppData, unsigned NumBytesReq, U32 Off){ //You must create an pointer on structure FIL *phFile; //and then initialize the pointer value is passed to the function APP_GetData phFile=(FIL*) p; //And then use this pointer to your function f_lseek(phFile,Off); fresult=f_read(phFile,_acBuffer,NumBytesReq,&NumBytesRead); *ppData = _acBuffer; return NumBytesRead; } fresult=f_open (&pFile, Path, FA_READ); // open file GUI_BMP_DrawEx(APP_GetData, &pFile,xP…
-
I had a similar Problem. I do not set up correctly initialize ssd1963. I did not have a red color. I thought that the screen is defective. My screen ("glass") 24 bit and I set the controller ssd1963 to another mode (18-bit). Check parameter LcdWriteReg (set_lcd_mode); A [5]:TFT panel data width (POR = 0) 0 18-bit 1 24-bit
-
My functions in file LCDConf.c static __INLINE void LcdWriteReg(U16 Data) { // ... TBD by user LCD_REG_ADDRESS=Data; } static __INLINE void LcdWriteData(U16 Data) { // ... TBD by user LCD_DATA_ADDRESS=Data; } static __INLINE void LcdWriteDataMultiple(U16 * pData, int NumItems) { while (NumItems--) { // ... TBD by user LCD_DATA_ADDRESS = *pData++; } } static __INLINE void LcdReadDataMultiple(U16 * pData, int NumItems) { while (NumItems--) { // ... TBD by user *pData++ = LCD_DATA_ADDRESS; } } void…