How i can write text on display through coding in s7g2 board ?
Hi niku,
You may use GUIX, add a prompt widget and set its contents using gx_prompt_text_set. This is the easiest way of displaying a text on the screen.
Please find GUIX user's manual at SSP Website (X-Ware™ Component Documents for Renesas Synergy™).
Regards,adboc
The following project draws "HELLO" on the screen (SK-S7G2, SSP 1.4.0).
GLCDC_1.zip
Hope it helps.
Have you set the font before using gx_context_font_set? I have implemented the following window drawing function and I see "Hello" text on the screen:
VOID main_window_draw(GX_WINDOW *widget){ SSP_PARAMETER_NOT_USED(widget); gx_context_brush_define(GX_COLOR_ID_SELECTED_TEXT, GX_COLOR_ID_SELECTED_TEXT, GX_BRUSH_ALIAS | GX_BRUSH_SOLID_FILL); gx_context_brush_width_set(1); gx_context_font_set(GX_FONT_ID_PROMPT); gx_canvas_text_draw(10, 10, "Hello", 5);}
The easiest way is to create a custom widget (gx_widget_create) and assign your drawing function (to draw a text) and event handler (to handle PEN_UP/PEN_DOWN) events. I suggest looking at GUIX user's guide (link "X-Ware™ Component Documents for Renesas Synergy™" at SSP website).