Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom offset #313

Open
GoogleCodeExporter opened this issue Apr 13, 2015 · 3 comments
Open

Custom offset #313

GoogleCodeExporter opened this issue Apr 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Some low cost SSD1306 128x64 displays, especially the 1.3" I2C only versions, 
suffer from an offset of 2 pixel columns, shown as garbage. This can be fixed 
by changing the library u8g_dev_ssd1306_128x64.c.

static const uint8_t u8g_dev_ssd1306_128x64_data_start[] PROGMEM = {
  U8G_ESC_ADR(0),           /* instruction mode */
  U8G_ESC_CS(1),             /* enable chip */
  0x010,        /* set upper 4 bit of the col adr to 0 */
  0x000,        /* set lower 4 bit of the col adr to 0  */
  U8G_ESC_END                /* end of sequence */
};

The value 0x000 needs to be changed to the number of wrong columns shown (a 
value of 0x002 fixed my problem).

It would be nice to make this value programmable so a user can change the 
default value without altering the library.



What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by sleurhu...@gmail.com on 27 Jan 2015 at 3:10

@GoogleCodeExporter
Copy link
Author

Unfortunately your initial assumption is wrong. The SSD1306 can not have such a 
shift, as it has a width of exactly 128 pixel. Conclusion is, that you own a 
SH1106 controller. The SH1106 has a internal memory width of 132 pixel and 
requires such a shift. 

So: Please use the SH1106 device from u8glib. Very often ultra cheap 128x64 
displays are sold as SSD1306, however, often this is a SH1106.


Original comment by olikr...@gmail.com on 27 Jan 2015 at 7:23

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

I can confirm that choosing the SH1106 takes care of the two pixel offset on 
the left side and the garbage on the right side of the display.

Original comment by gj.roden...@gmail.com on 31 Jan 2015 at 9:55

@GoogleCodeExporter
Copy link
Author

great, then, if there is nothing else, i will close this ticket.

Original comment by olikr...@gmail.com on 31 Jan 2015 at 11:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant