Flip text on ST7565
Moderators: adafruit_support_bill, adafruit

Re: Flip text on ST7565

by Scott216 on Sun Jan 27, 2013 9:48 pm

Those commands work, this is all I have to do to flip the display:

Code: Select all | TOGGLE FULL SIZE
if(upsidedown == true)
  {
    glcd.st7565_command(CMD_SET_ADC_REVERSE);
    glcd.st7565_command(CMD_SET_COM_REVERSE);
  }
  else
  {
   glcd.st7565_command(CMD_SET_ADC_NORMAL);
   glcd.st7565_command(CMD_SET_COM_NORMAL);
  }
Scott216
 
Posts: 142
Joined: Sun Apr 12, 2009 11:08 am
Location: New Jersey

Re: Flip text on ST7565

by adafruit_support_bill on Sun Jan 27, 2013 10:07 pm

Great! Even simpler than I thought. :D
User avatar
adafruit_support_bill
 
Posts: 31041
Joined: Sat Feb 07, 2009 10:11 am

Re: Flip text on ST7565

by ElChar on Mon Jan 20, 2014 7:35 pm

After set:

Code: Select all | TOGGLE FULL SIZE
glcd.st7565_command(CMD_SET_ADC_REVERSE);
glcd.st7565_command(CMD_SET_COM_REVERSE);


to flip display.

The first 4 pixels (for all rows) are displayed on the right side of LCD; as read on edeca's post, when display is reversed we need another call to st7565_command to set initial column, but I can't figure right comand to set.

I try to play without luck with COLUMN_LOW and UPPER constants and several values.

Could you help me?
Thanks
ElChar
 
Posts: 4
Joined: Mon Jan 20, 2014 7:14 pm



cron