Gridline Guix

How i can make Gridline in guix?

  • Hi niku,

    Not sure if you're asking about borders in a table? This thread might be helpful: renesasrulz.com/.../ - especially "medical" GUIX example.

    Please note that GUIX also allows to draw custom objects using raw pixels, lines, rectangles, circles etc. I suggest checking GUIX user's guide.

    Regards,
    adboc
  • In reply to adboc:

    Actually I want to make oscilloscope gridline display image on guix studio. how i can do ?
  • In reply to niku:

    Hi niku,

    I would suggest setting a background image with grid lines. Create a window widget, add a bitmap and select the bitmap as wallpaper in window's settings in GUIX Studio.

    Alternatively you may want to draw lines manually using gx_canvas_line_draw function. Widget's draw function is the best place to draw custom objects like this (you may declare a custom draw function in each widget's settings in GUIX Studio). This thread might be helpful: renesasrulz.com/.../draw-lines-or-shapes-in-display-pe-hmi-kit

    Regards,
    adbpc
  • In reply to adboc:

    Is it possible to draw a grid line or (single dot) in display through coding ?
  • In reply to niku:

    Hi niku,

    Yes, it is possible, please take a look at an example posted in the thread referenced earlier.

    Regards,
    adboc
  • In reply to adboc:

    your given example code not work. do you have any basic code like draw single line or dot through coding for as reference?
    i am using e2 studio version 6.2.0 and ssp version 1.4.0 and i am working on custom board.
  • In reply to niku:

    Hi niku,

    Please take a look at an example for SK-S7G2, it draws a line (main_window_draw function is a draw function for main_window, set in GUIX Studio):

    S7G2_SK_GUIX_Custom_Draw_1_4_0.zip

    Please see GUIX user's guide for more gx_canvas_* functions.

    Regards,
    adboc

  • In reply to adboc:

    in your code my cursor stuck here BSP_CFG_HANDLE_UNRECOVERABLE_ERROR(0) .
  • In reply to adboc:

    how i overcome to this problem ? plz give me suggest
  • In reply to niku:

    Hi niku,

    Are you running the example on SK-S7G2? Do you have SSP 1.4.0 installed? Could you provide a screenshot of the call stack when this error occurs?

    Regards,
    adboc
  • In reply to niku:

    yes i installed ssp version.
  • In reply to niku:

    Hi niku,

    Unfortunately I cannot reproduce this error. Is it an unmodified SK-S7G2 board? Please select sf_touch_panel_i2c_init0 on the call stack and check the value of ssp_err_g_sf_touch_panel_i2c. Could you try regenerating project content and making a clean build?

    Regards,
    adboc
  • In reply to adboc:

    IF I WANT TO DRAW A PIXEL OR SINGLE DOT SO IS IT NECESSARY I2C AND SPI THREAD ?
    CAN I WRITE A CODE IN GUIX ON GX THRED ONLY?
  • In reply to niku:

    Hi niku,

    The example draws a line in widget drawing function, which is called within interal GUIX System Thread. This is the recommended approach.

    There are no I2C and SPI threads, but there are I2C and SPI drivers. The first one is needed for a touch panel controller (not used in this case), the second one is used for display initialization (required).

    Drawing a pixel is just as easy as drawing a line, the updated example draws pixels using gx_canvas_pixel_draw:

    1667.S7G2_SK_GUIX_Custom_Draw_1_4_0.zip

    Regards,
    adboc