added power down sequence, issue #142

This commit is contained in:
olikraus 2017-01-04 12:09:52 +01:00
parent e579344aa8
commit 7dd9a68e58
4 changed files with 28 additions and 7 deletions

View File

@ -41,6 +41,7 @@
static const uint8_t u8x8_d_st7565_powersave0_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0a4), /* all pixel off, issue 142 */
U8X8_C(0x0af), /* display on */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
@ -49,6 +50,7 @@ static const uint8_t u8x8_d_st7565_powersave0_seq[] = {
static const uint8_t u8x8_d_st7565_powersave1_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
};
@ -223,7 +225,9 @@ static const uint8_t u8x8_d_st7565_dogm128_init_seq[] = {
U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */
U8X8_C(0x027), /* regulator, booster and follower */
U8X8_CA(0x081, 0x018), /* set contrast, contrast value, EA default: 0x016 */
U8X8_C(0x0a4), /* normal display */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
@ -286,7 +290,9 @@ static const uint8_t u8x8_d_st7565_zolen_128x64_init_seq[] = {
U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */
U8X8_C(0x027), /* regulator, booster and follower */
U8X8_CA(0x081, 0x007), /* set contrast, contrast value, EA default: 0x016 */
U8X8_C(0x0a4), /* normal display */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
@ -351,7 +357,9 @@ static const uint8_t u8x8_d_st7565_nhd_c12832_init_seq[] = {
U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */
U8X8_C(0x023), /* set V0 voltage resistor ratio to large*/
U8X8_CA(0x081, 0x00a), /* set contrast, contrast value NHD C12832 */
U8X8_C(0x0a4), /* normal display */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
@ -416,7 +424,9 @@ static const uint8_t u8x8_d_st7565_lm6059_init_seq[] = {
U8X8_CA(0x0f8, 0x000), /* set booster ratio to 4x */
U8X8_C(0x027), /* regulator, booster and follower */
U8X8_CA(0x081, 0x018), /* set contrast, contrast value, EA default: 0x016 */
U8X8_C(0x0a4), /* normal display */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */

View File

@ -40,6 +40,7 @@
static const uint8_t u8x8_d_st7567_132x64_powersave0_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0a4), /* all pixel off, issue 142 */
U8X8_C(0x0af), /* display on */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
@ -48,6 +49,7 @@ static const uint8_t u8x8_d_st7567_132x64_powersave0_seq[] = {
static const uint8_t u8x8_d_st7567_132x64_powersave1_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
};
@ -119,8 +121,10 @@ static const uint8_t u8x8_d_st7567_132x64_init_seq[] = {
U8X8_C(0x026), /* v0 voltage resistor ratio */
U8X8_CA(0x081, 0x027), /* set contrast, contrast value*/
U8X8_C(0x0a4), /* normal display */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
};

View File

@ -59,7 +59,9 @@ static const uint8_t u8x8_d_uc1701_dogs102_init_seq[] = {
U8X8_CA(0x081, 0x00e), /* set contrast, contrast value, EA default: 0x010, previous value for S102: 0x0e */
U8X8_C(0x0fa), /* Set Temp compensation */
U8X8_C(0x090), /* 0.11 deg/c WP Off WC Off*/
U8X8_C(0x0a4), /* normal display */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
@ -67,6 +69,7 @@ static const uint8_t u8x8_d_uc1701_dogs102_init_seq[] = {
static const uint8_t u8x8_d_uc1701_dogs102_powersave0_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0a4), /* all pixel off, issue 142 */
U8X8_C(0x0af), /* display on */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
@ -75,6 +78,7 @@ static const uint8_t u8x8_d_uc1701_dogs102_powersave0_seq[] = {
static const uint8_t u8x8_d_uc1701_dogs102_powersave1_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
};

View File

@ -60,7 +60,8 @@ static const uint8_t u8x8_d_uc1701_mini12864_init_seq[] = {
U8X8_C(0x0ac), /* indicator */
// 0x000, /* disable */
U8X8_C(0x0a4), /* normal display */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
@ -68,6 +69,7 @@ static const uint8_t u8x8_d_uc1701_mini12864_init_seq[] = {
static const uint8_t u8x8_d_uc1701_mini12864_powersave0_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0a4), /* all pixel off, issue 142 */
U8X8_C(0x0af), /* display on */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
@ -76,6 +78,7 @@ static const uint8_t u8x8_d_uc1701_mini12864_powersave0_seq[] = {
static const uint8_t u8x8_d_uc1701_mini12864_powersave1_seq[] = {
U8X8_START_TRANSFER(), /* enable chip, delay is part of the transfer start */
U8X8_C(0x0ae), /* display off */
U8X8_C(0x0a5), /* enter powersafe: all pixel on, issue 142 */
U8X8_END_TRANSFER(), /* disable chip */
U8X8_END() /* end of sequence */
};