From c82c6ff4ec89216115365ce7b25f9ecabfdbe63c Mon Sep 17 00:00:00 2001 From: kraus Date: Fri, 22 Jun 2018 21:55:44 +0200 Subject: [PATCH] issue #641 --- csrc/u8x8_d_ssd1327.c | 23 ++++++++++++++++++++--- tools/release/print_release.sh | 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/csrc/u8x8_d_ssd1327.c b/csrc/u8x8_d_ssd1327.c index bffb0c52..1b1e0674 100644 --- a/csrc/u8x8_d_ssd1327.c +++ b/csrc/u8x8_d_ssd1327.c @@ -349,7 +349,7 @@ static const uint8_t u8x8_d_ssd1327_ea_w128128_init_seq[] = { U8X8_CA(0x0a1, 0x000), /* display start line */ //U8X8_CA(0x0a2, 0x04c), /* display offset, shift mapping ram counter */ - U8X8_CA(0x0a2, 0x020), /* display offset, shift mapping ram counter */ + U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ U8X8_CA(0x0a0, 0x051), /* remap configuration */ @@ -380,6 +380,23 @@ static const uint8_t u8x8_d_ssd1327_ea_w128128_init_seq[] = { }; + +static const uint8_t u8x8_d_ssd1327_ea_w128128_flip0_seq[] = { + U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ + U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ + U8X8_CA(0x0a0, 0x051), /* remap configuration */ + U8X8_END_TRANSFER(), /* disable chip */ + U8X8_END() /* end of sequence */ +}; + +static const uint8_t u8x8_d_ssd1327_ea_w128128_flip1_seq[] = { + U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */ + U8X8_CA(0x0a2, 0x000), /* display offset, shift mapping ram counter */ + U8X8_CA(0x0a0, 0x042), /* remap configuration */ + U8X8_END_TRANSFER(), /* disable chip */ + U8X8_END() /* end of sequence */ +}; + uint8_t u8x8_d_ssd1327_ea_w128128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { if ( u8x8_d_ssd1327_96x96_generic(u8x8, msg, arg_int, arg_ptr) != 0 ) @@ -399,12 +416,12 @@ uint8_t u8x8_d_ssd1327_ea_w128128(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, vo { if ( arg_int == 0 ) { - u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_seeed_96x96_flip0_seq); + u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_ea_w128128_flip0_seq); u8x8->x_offset = u8x8->display_info->default_x_offset; } else { - u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_seeed_96x96_flip1_seq); + u8x8_cad_SendSequence(u8x8, u8x8_d_ssd1327_ea_w128128_flip1_seq); u8x8->x_offset = u8x8->display_info->flipmode_x_offset; } return 1; diff --git a/tools/release/print_release.sh b/tools/release/print_release.sh index 1b77de6c..9d974e52 100755 --- a/tools/release/print_release.sh +++ b/tools/release/print_release.sh @@ -1,2 +1,2 @@ # without 'v' prefix -echo -n "2.23.9" +echo -n "2.23.10"