tobib
-
Posts
3 -
Joined
-
Last visited
Content Type
Forums
Store
Downloads
Blogs
Posts posted by tobib
-
-
Hi,
in the Function gdispGDrawRoundedBox the arcs get filled, if GDISP_NEED_ARCSECTORS is set to TRUE, because of a wrong function call.
gdispGFillArcSectors must be replaced by gdispGDrawArcSectors.
At Line 2332 from gdisp_gdisp.c:
#if GDISP_NEED_ARC || GDISP_NEED_ARCSECTORS
void gdispGDrawRoundedBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t radius, color_t color) {
if (2*radius > cx || 2*radius > cy) {
gdispGDrawBox(g, x, y, cx, cy, color);
return;
}
#if GDISP_NEED_ARCSECTORS
gdispGFillArcSectors(g, x+radius, y+radius, radius, 0x0C, color);
gdispGFillArcSectors(g, x+cx-1-radius, y+radius, radius, 0x03, color);
gdispGFillArcSectors(g, x+cx-1-radius, y+cy-1-radius, radius, 0xC0, color);
gdispGFillArcSectors(g, x+radius, y+cy-1-radius, radius, 0x30, color);
#else
gdispGDrawArc(g, x+radius, y+radius, radius, 90, 180, color);
gdispGDrawArc(g, x+cx-1-radius, y+radius, radius, 0, 90, color);
gdispGDrawArc(g, x+cx-1-radius, y+cy-1-radius, radius, 270, 360, color);
gdispGDrawArc(g, x+radius, y+cy-1-radius, radius, 180, 270, color);
#endif
gdispGDrawLine(g, x+radius+1, y, x+cx-2-radius, y, color);
gdispGDrawLine(g, x+cx-1, y+radius+1, x+cx-1, y+cy-2-radius, color);
gdispGDrawLine(g, x+radius+1, y+cy-1, x+cx-2-radius, y+cy-1, color);
gdispGDrawLine(g, x, y+radius+1, x, y+cy-2-radius, color);
}
#endifGreets
Tobi
-
Hi.
My name is Tobi and I just startet playing around with Chibi/OS and uGFX. I use Em::Blocks as an IDE and currently I work with a chinese board (STM32F103RB) with a TFT attached (2.8" ILI9320). First: I'm very impressed with this combination - great work!
My Problem:
After a long time I got the TFT working, but I cannot read the device code correct.
When I read the device code I get 0x1320 instead of 0x9320 -> The first bit is missing - or always read as zero.
Input/output settings of the board are correct (checked with debugger) - see screenshot below.
I added the code in Line 115 and 116 to have a workaround for now.
BUG: DejaVuSans20_aa.c has wrong font names
in Development and Feedback
Posted
And another one - but last for now
Font has wrong font names.(copy/paste error)
src/gdisp/fonts/DejaVuSans20_aa.c:
Here's a corrected version:
n8