David Smart
/
PUB_RA8875_TouchColors
An example program using the RA8875 Display controller with the touch-screen option.
Revision 7:5194e00baf6f, committed 2020-03-28
- Comitter:
- WiredHome
- Date:
- Sat Mar 28 15:35:02 2020 +0000
- Parent:
- 6:813c99fda5da
- Child:
- 8:37927cff305e
- Commit message:
- Breaking change update to RA8875 Library. Improved APIs, Improved Portrait Mode, Code Cleanup.
Changed in this revision
RA8875.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/RA8875.lib Sun Jul 28 03:44:00 2019 +0000 +++ b/RA8875.lib Sat Mar 28 15:35:02 2020 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/WiredHome/code/RA8875/#c7fb7a4fb42f +http://mbed.org/users/WiredHome/code/RA8875/#fb06805f447f
--- a/main.cpp Sun Jul 28 03:44:00 2019 +0000 +++ b/main.cpp Sat Mar 28 15:35:02 2020 +0000 @@ -154,12 +154,12 @@ // +----------------------------------------------------+ y = 271 // 10 w-10 rect_t RGBList[] = { - rect_t( 10,100, LCD_W-10,139 ), // R - rect_t( 10,150, LCD_W-10,189 ), // G - rect_t( 10,200, LCD_W-10,239 ), // B - rect_t( 10, 50, LCD_W-10, 89 ) // This for the Sample + { 10,100, LCD_W-10,139 }, // R + { 10,150, LCD_W-10,189 }, // G + { 10,200, LCD_W-10,239 }, // B + { 10, 50, LCD_W-10, 89 } // This for the Sample }; - rect_t PrintScreenRect = rect_t( LCD_W/2-30, 5, LCD_W/2+30, 40 ); + rect_t PrintScreenRect = { LCD_W/2-30, 5, LCD_W/2+30, 40 }; lcd.fillrect(RGBList[0], Red); lcd.fillrect(RGBList[1], Green); lcd.fillrect(RGBList[2], Blue);