This commit is contained in:
kraus 2020-01-26 09:47:24 +01:00
parent 1f110113e3
commit c3e91dc05f
2 changed files with 12 additions and 0 deletions

View File

@ -427,6 +427,8 @@ void u8g2_SetClipWindow(u8g2_t *u8g2, u8g2_uint_t clip_x0, u8g2_uint_t clip_y0,
void u8g2_SetupBuffer(u8g2_t *u8g2, uint8_t *buf, uint8_t tile_buf_height, u8g2_draw_ll_hvline_cb ll_hvline_cb, const u8g2_cb_t *u8g2_cb);
void u8g2_SetDisplayRotation(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb);
void u8g2_SendF(u8g2_t * u8g2, const char *fmt, ...);
/* null device setup */
void u8g2_Setup_null(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb);

View File

@ -114,6 +114,16 @@ void u8g2_SetDisplayRotation(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb)
u8g2->cb->update_page_win(u8g2);
}
/*============================================*/
void u8g2_SendF(u8g2_t * u8g2, const char *fmt, ...)
{
va_list va;
va_start(va, fmt);
u8x8_cad_vsendf(u8g2_GetU8x8(u8g2), fmt, va);
va_end(va);
}
/*============================================*/
/*