u8g2 icon indicating copy to clipboard operation
u8g2 copied to clipboard

mui_u8g2_draw_button_utf_pi not defined

Open loopj opened this issue 2 years ago • 2 comments

Hey Oli, great library thanks for building this.

I'm trying to define my own custom mui field which will render a "pi" style button, but I notice that mui_u8g2_draw_button_utf_pi is not actually implemented in mui_u8g2.c, even though it is defined in the header.

Is this intentional? I would love access to some of the "private" drawing functions from mui_u8g2.c to create my own fields.

Best

  • j

loopj avatar Jul 31 '22 22:07 loopj

Mui is work in progress. I did a lot of renaming so it might be happened due to that. It is at least not intentional. Thanks for the hint. I will look into this.

olikraus avatar Aug 01 '22 04:08 olikraus

Thanks! I’m using Mui on a couple of my projects already and love it.

loopj avatar Aug 01 '22 04:08 loopj

ah, your request is to have "mui_u8g2_draw_button_utf_pi" because it is not there.

olikraus avatar Sep 03 '22 14:09 olikraus

The goto button is there: "mui_u8g2_btn_goto_w1_pi" what exactly do you need? Actually your function should be there already, it is "mui_u8g2_draw_button_pi". I actually removed all the utf strings from the names, because MUI will only use UTF8.

Ah, I see the problem. Yes indeed it looks like a renaming problem. I will update the header.

olikraus avatar Sep 03 '22 14:09 olikraus

Thank you! This will allow me to remove a ton of duplication.

loopj avatar Sep 04 '22 14:09 loopj

Great. Note that I have just released 2.33.15, so the update should be there soon in Arduino IDE.

olikraus avatar Sep 04 '22 15:09 olikraus