Thank you Michael. SDFileSystem on K64F works nicely here.
/media/uploads/kg1/file.bmp
I note that the bmp file is restricted to the default screen size (480x272) whereas I am using 800x480 on buydisplay ER-TFTM070-5.
Also the dates on the above files are 1/01/2098. These are minor matters.
Regarding the LocalFileSystem I believe that there is a flag in mbed that is set if a platform is not compatible. This enables the K64F to fail instantly upon hitting a LocalFileSystem. Perhaps your code can use this flag to switch between LocalFileSystem and SD?
Are there other changes you have made to the original RA8875 library?
I have helped David make changes to the original library to prevent characters printing over the edge of the screen. His latest version has these changes. I have also have word wrap working in my copy at home.
I am interested in these items below:
If I use lcd.init(); with no parameters I get two copies of your screen.
if I use lcd.init(800, 480); I get one copy of your screen.
if I use lcd.init(800,480,8); hard fonts are ok but user soft fonts are a fussy white unreadable. The default is 8 bit.
If I use lcd.init(800,480,16); fonts are back to normal.
if I use lcd.init(800,480,16,0); reset as normal but the screen displays nothing. The default for poweron is 0? What are the mbed rules if a parameter has no default specified?
if I use lcd.init(800,480,16,1); fonts are back to normal, single display.
If I use lcd.init(800,480,16,1,0,0); Not using keypad or touch: fonts are back to normal, single display.
Most interested to receive your comments. If you wish to take this offline please email me gordonkevin117(at)gmail(dot)com
Regards,
Kevin
I am using: Windows 8.1, IDE:Kinetis Design Studio, PLATFORM: K64F: MK64FN1M0VLL12, Display: ER-TFTM070-5, PROGRAM: RA8875_DEMO I have made two changes: CHANGES: main.cpp
RA8875.h
RetCode_t init(int width = 800, int height = 480, int color_bpp = 16, bool poweron = true, bool keypadon = true, bool touchscreeenon = true);Two errors in the RA8875_Demo code:
main.o "..\\main.cpp" In file included from C:\FreeScale\workspace.kds\RA8875_Demo\RA8875/GraphicsDisplay.h:16:0, from C:\FreeScale\workspace.kds\RA8875_Demo\RA8875/RA8875.h:61, from ..\main.cpp:3: C:\FreeScale\workspace.kds\RA8875_Demo\RA8875/Bitmap.h:23:0: warning: ignoring #pragma push [-Wunknown-pragmas] #pragma push ^ C:\FreeScale\workspace.kds\RA8875_Demo\RA8875/Bitmap.h:49:0: warning: ignoring #pragma pop [-Wunknown-pragmas] #pragma pop ^ C:\FreeScale\workspace.kds\RA8875_Demo\RA8875/Bitmap.h:77:0: warning: ignoring #pragma push [-Wunknown-pragmas] #pragma push ^ C:\FreeScale\workspace.kds\RA8875_Demo\RA8875/Bitmap.h:98:0: warning: ignoring #pragma pop [-Wunknown-pragmas] #pragma pop ^ In file included from ..\main.cpp:3:0: C:\FreeScale\workspace.kds\RA8875_Demo\RA8875/RA8875.h: In member function 'void RA8875::AttachPrintHandler(T*, RetCode_t (T::*)())': C:\FreeScale\workspace.kds\RA8875_Demo\RA8875/RA8875.h:1930:44: error: 'item' was not declared in this scope obj_callback = (FPointerDummy *)item; ^ C:\FreeScale\workspace.kds\RA8875_Demo\RA8875/RA8875.h:1931:66: error: 'method' was not declared in this scope method_callback = (uint32_t (FPointerDummy::*)(uint32_t))method; ^ ..\main.cpp: At global scope: ..\main.cpp:11:1: error: 'LocalFileSystem' does not name a type LocalFileSystem local("local"); // Because I want <PrintScreen> ^I searched on Google and found: https://github.com/ceterumnet/Smoothie/blob/master/src/libs/FPointer.h which provided an example on line 112:
template<class T> void attach(T* item, uint32_t (T::*method)(uint32_t)) { obj_callback = (FPointerDummy *)item; method_callback = (uint32_t (FPointerDummy::*)(uint32_t))method; }I changed the RA8875.h code:
template <class T> void AttachPrintHandler(T *item, RetCode_t (T::*method)(void)) { obj_callback = (FPointerDummy *)item; method_callback = (uint32_t (FPointerDummy::*)(uint32_t))method; }which compiles ok. The error "main.cpp:11:1: error: 'LocalFileSystem' does not name a type" I used Google on mbed: "LocalFileSystem only works on the two original mbed boards (LPC1768 and LPC11u24)." was one answer. If I comment out:
LocalFileSystem local("local"); // Because I want <PrintScreen>what other code should I also comment out? I seem to have memory errors:
Also the touchTicker.attach_us function seems to "go into a spin". Please see screen shots attached.
Your help would be much appreciated. Kevin.