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

ST7567S 128X64 I2C unknown variant #2462

Open
kittenarmy opened this issue Jun 22, 2024 · 4 comments
Open

ST7567S 128X64 I2C unknown variant #2462

kittenarmy opened this issue Jun 22, 2024 · 4 comments

Comments

@kittenarmy
Copy link

kittenarmy commented Jun 22, 2024

I have an ST7567S variant I2C display that looks identical to #2364, it has I2C address 0x3F. I tried using these 4 as per thread but none of them work with the Hello World example:

  • U8G2_ST7567_JLX12864_1_SW_I2C
  • U8G2_ST7567_ENH_DG128064_1_SW_I2C
  • U8G2_ST7567_ENH_DG128064I_1_SW_I2C
  • U8G2_ST7567_OS12864_1_SW_I2C

Just to make sure, how should I connect it to Arduino Nano with this library? I have the display connected to I2C pins A4, A5 and putting U8G2_ST7567_OS12864_1_SW_I2C u8g2(U8G2_R0, 19, 18); where it expects the constructor. I also tried U8G2_ST7567_OS12864_1_SW_I2C u8g2(U8G2_R0, A5, A4); following
https://github.com/olikraus/u8g2/blob/master/doc/faq.txt
https://www.arduino.cc/reference/en/language/functions/communication/wire/

@kittenarmy
Copy link
Author

If I use GraphicsTest.ino with U8G2_ST7567_HEM6432_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); I get partially working (screen seems to be far too bright though):

uT4ERNG

@kittenarmy
Copy link
Author

I don't know if it helps but this library mostly works (except I can't get it to display images). There is a datasheet included.

@kittenarmy kittenarmy changed the title ST7567S I2C unknown variant ST7567S 128X64 I2C unknown variant Jun 22, 2024
@olikraus
Copy link
Owner

Just to make sure, how should I connect it to Arduino Nano with this library?

In case of SW_I2C you can use any kind of pin. Just provide the pin numbers for clock and data.

but none of them work with the Hello World example

Sometimes it is better to use the Contrast example, because the displays might differ in the contrast setup (u8g2.setContrast() might be required)

@kittenarmy
Copy link
Author

Just to make sure, how should I connect it to Arduino Nano with this library?

In case of SW_I2C you can use any kind of pin. Just provide the pin numbers for clock and data.

but none of them work with the Hello World example

Sometimes it is better to use the Contrast example, because the displays might differ in the contrast setup (u8g2.setContrast() might be required)

Thanks. I tried each within ContrastTest.ino and some seem to alter the contrast a little. But when I try these constructor in GraphicsTest.ino I get nothing.

Is this library compatible with Arduino 1.8.19? I used the latest available from the manager.

// for reference
// nano sda grey a4, scl white a5
// 19 clock, 18 data
// U8G2_ST7567_JLX12864_1_SW_I2C u8g2(U8G2_R0, A5, A4);
// U8G2_ST7567_OS12864_1_SW_I2C u8g2(U8G2_R0, A5, A4);
// U8G2_ST7567_ENH_DG128064_1_SW_I2C u8g2(U8G2_R0, A5, A4);
// U8G2_ST7567_ENH_DG128064I_1_SW_I2C u8g2(U8G2_R0, A5, A4);

// some contrast changing in ContrastTest.ino
// U8G2_ST7567_PI_132X64_1_HW_I2C u8g2(U8G2_R0);
// U8G2_ST7567_PI_132X64_1_2ND_HW_I2C u8g2(U8G2_R0);

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

No branches or pull requests

2 participants