issue #76
This commit is contained in:
parent
69e96c157a
commit
d0143f6b7d
|
@ -44,6 +44,7 @@ https://github.com/olikraus/u8g2 ChangeLog
|
|||
* Added support for SSD1322 and SSD1325
|
||||
* Added DrawXBMP (AVR: Assume bitmap in PROGMEM)
|
||||
* Added japanese fonts (issue 65)
|
||||
|
||||
2016-xx-xx v2.6.x olikraus@gmail.com
|
||||
* Added support for UC1610 (DOGXL160)
|
||||
|
||||
|
||||
|
|
|
@ -369,11 +369,13 @@ extern const u8g2_cb_t u8g2_cb_r0;
|
|||
extern const u8g2_cb_t u8g2_cb_r1;
|
||||
extern const u8g2_cb_t u8g2_cb_r2;
|
||||
extern const u8g2_cb_t u8g2_cb_r3;
|
||||
extern const u8g2_cb_t u8g2_cb_mirror;
|
||||
|
||||
#define U8G2_R0 (&u8g2_cb_r0)
|
||||
#define U8G2_R1 (&u8g2_cb_r1)
|
||||
#define U8G2_R2 (&u8g2_cb_r2)
|
||||
#define U8G2_R3 (&u8g2_cb_r3)
|
||||
#define U8G2_MIRROR (&u8g2_cb_mirror)
|
||||
/*
|
||||
u8g2: A new, not yet initialized u8g2 memory areay
|
||||
buf: Memory are of size tile_buf_height*<width of the display in pixel>
|
||||
|
|
|
@ -199,6 +199,24 @@ void u8g2_draw_l90_r0(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t le
|
|||
u8g2_draw_hv_line_4dir(u8g2, x, y, len, dir);
|
||||
}
|
||||
|
||||
void u8g2_draw_l90_mirrorr_r0(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir)
|
||||
{
|
||||
u8g2_uint_t xx;
|
||||
xx = u8g2->width;
|
||||
xx -= x;
|
||||
if ( (dir & 1) == 0 )
|
||||
{
|
||||
xx -= len;
|
||||
}
|
||||
else
|
||||
{
|
||||
xx--;
|
||||
}
|
||||
u8g2_draw_hv_line_4dir(u8g2, xx, y, len, dir);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void u8g2_draw_l90_r1(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8g2_uint_t len, uint8_t dir)
|
||||
{
|
||||
u8g2_uint_t xx, yy;
|
||||
|
@ -254,7 +272,7 @@ const u8g2_cb_t u8g2_cb_r1 = { u8g2_update_dimension_r1, u8g2_draw_l90_r1 };
|
|||
const u8g2_cb_t u8g2_cb_r2 = { u8g2_update_dimension_r2, u8g2_draw_l90_r2 };
|
||||
const u8g2_cb_t u8g2_cb_r3 = { u8g2_update_dimension_r3, u8g2_draw_l90_r3 };
|
||||
|
||||
|
||||
const u8g2_cb_t u8g2_cb_mirror = { u8g2_update_dimension_r0, u8g2_draw_l90_mirrorr_r0 };
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue