Open GoogleCodeExporter opened 8 years ago
i have added
u8g_uint_t getPrintCol(void) { return tx; }
u8g_uint_t getPrintRow(void) { return ty; }
to U8glib.h
Thanks.
Original comment by olikr...@gmail.com
on 31 Jan 2015 at 11:40
Hi,
maybe 'drawStr*()' would be also handy:
u8g_uint_t drawStr(const char *s) { return u8g_DrawStr(&u8g, tx, ty, s); }
u8g_uint_t drawStr(const __FlashStringHelper *s) { return u8g_DrawStrP(&u8g,
tx, ty, (u8g_pgm_uint8_t *)s); }
u8g_uint_t drawStr90(const char *s) { return u8g_DrawStr90(&u8g, tx, ty, s); }
Hmm, maybe all methods could catch the current point? Like
void drawHLine(u8g_uint_t w) { u8g_DrawHLine(&u8g, tx, ty, w); }
Original comment by Eugeniju...@gmail.com
on 1 Feb 2015 at 11:31
Well, the idea is, to make the interface in c++ and c identical. Also, i assume
that all people in the Arduino world will use "print" instead of drawStr.
If you really want such a feature, you can derive your own class from U8glib
class and add these missing functions.
Original comment by olikr...@gmail.com
on 1 Feb 2015 at 12:23
Original issue reported on code.google.com by
Eugeniju...@gmail.com
on 31 Jan 2015 at 10:43