U8g2: setContrast no effect

Created on 4 Feb 2017  ·  11Comments  ·  Source: olikraus/u8g2

Hi there,

I met a problem with u8g2, the screen shows characters well, but the its background color are almost same to the words one. it can't be read from in a positive way. Only when you turn around the screen, and watch it from edgewise, you can see the characters.

I adjust the contrast, but no effect, 0 is better, but still too dim. Everything works well on u8glib, but I need to use it on my Genuino 101. So that will be a problem.
U8G2_ST7565_ERC12864_F_4W_SW_SPI
Arduino IDE 1.6.10

question

Most helpful comment

Thank you for everything! It is amazing!

All 11 comments

Can you send a picture? You have exactly this display?

More remarks:

  • The range is 0 to 255 for setContrast()
  • The ERC12864 is still under construction, see #177

any feedback?

Sorry, It is U8GLIB_NHD_C12864 u8g(13, 11, 10, 9, 8);
This is U8glib with constrast 0
20170209_191048

This is U8g2 with "u8g2.setContrast(0)"
20170209_192747
20170209_192751
Actually, I want to use the lcd with Arduino 101, so I have to use u8g2. Plz help
Anyway, U8g lib is a really good work! Thank you for what everything you did!

Please download the latest u8g2 version from here:

https://github.com/olikraus/U8g2_Arduino/archive/master.zip

Install the via Arduino IDE (Add Zip Library)

In the example you will find the new constructor for NHD_C12864. Please try this new constructor.

please also read issue #186

Thank you for your update. it works well on UNO and Mega now. Like what Cray said, it is blank first. But after I set the contrast to 200. it works!

But now, I met a new problem. It doesn't work with Arduino 101. In the last version, it is just dim, but the new version shows blank. No matter how I set the contrast.

Does it still work on Uno and Mega Boards? Maybe this is a shield problem: I mean, maybe the shield is not compatible with the 101.

Suddenly, it works!!!!!!!!! But I don't know why......

This is a good news! Tested it with DFRobot LCD12864 shield.

Thank you for everything! It is amazing!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

margce picture margce  ·  7Comments

eimogandolf picture eimogandolf  ·  6Comments

morosanl picture morosanl  ·  3Comments

walenw picture walenw  ·  8Comments

sarwarislammoon picture sarwarislammoon  ·  4Comments