Increasing the pen size while drawing dotted line

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Increasing the pen size while drawing dotted line

      Suggest a method to increase the pen size while drawing a dotted line. The following code is not allowing this

      GUI_SetPenSize(3);
      GUI_SetLineStyle(GUI_LS_DOT);
      GUI_DrawLine(141, 115,195, 115);
    • Hi,

      As stated in the manual the different line styles are just working with a pen siize of 1.

      Unfortunately, you have to manage it on your own if you want to use a different pen size with a line style.
      You can write a helper function which draws multiple time with a specific line style.

      Regards,
      Sven
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.