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

Add SH1106 132x64 display support #32

Open
Deoptim opened this issue Dec 27, 2020 · 12 comments
Open

Add SH1106 132x64 display support #32

Deoptim opened this issue Dec 27, 2020 · 12 comments

Comments

@Deoptim
Copy link

Deoptim commented Dec 27, 2020

Hello.
I post this adapted library (ad58375 on Aug 29) for the SH1106 controller.
Made it possible not to use (delete) unsupported functions if the parameter "#define SH1106" is defined in the Tiny4kOLED_common.h file.
Applicable for SH1106 controller as there are slight differences from SSD1306.
I made this library for myself.
Thanks.
Tiny4kOLED-ad58375.zip

@hameed-maleki
Copy link

Hello. I post this adapted library (ad58375 on Aug 29) for the SH1106 controller. Made it possible not to use (delete) unsupported functions if the parameter "#define SH1106" is defined in the Tiny4kOLED_common.h file. Applicable for SH1106 controller as there are slight differences from SSD1306. I made this library for myself. Thanks. Tiny4kOLED-ad58375.zip

how can use your castum library?
i use inport your library and used sh1106 display not chenged?
The corner of the combo image still has pixel clutter
Uploading 16521336580755597869875827660376.jpg…

@hameed-maleki
Copy link

Uploading Screenshot_2022-05-10-02-53-55-016_com.miui.gallery.jpg…

@Deoptim
Copy link
Author

Deoptim commented May 10, 2022

@hamedmalekii Hello,
Are you use this initial sequence:

oled.begin(132, 64, sizeof(tiny4koled_init_132x64), tiny4koled_init_132x64);
oled.clear();
oled.on();
oled.init();

?

Note that the width here is 132 instead of 128...

@hameed-maleki
Copy link

@hamedmalekii Hello, Are you use this initial sequence:

oled.begin(132, 64, sizeof(tiny4koled_init_132x64), tiny4koled_init_132x64);
oled.clear();
oled.on();
oled.init();

?

Note that the width here is 132 instead of 128...
I did not use this command. My DISPLAY is SH1106 128 X 64 pixels, but I still need the command
Can I enter a132 pixel?

@hameed-maleki
Copy link

hameed-maleki commented Jun 8, 2022

@hamedmalekii Hello, Are you use this initial sequence:

oled.begin(132, 64, sizeof(tiny4koled_init_132x64), tiny4koled_init_132x64);
oled.clear();
oled.on();
oled.init();

?

Note that the width here is 132 instead of 128...

I use this order (132, 64, sizeof(tiny4koled_init_132x64), tiny4koled_init_132x64); but the display is upside down
Is there a way to solve it?

@hameed-maleki
Copy link

hameed-maleki commented Jun 20, 2022

@datacute
i use this order (132, 64, sizeof(tiny4koled_init_132x64), tiny4koled_init_132x64); but the display is upside down
Is there a way to solve it? #

@hameed-maleki
Copy link

@hamedmalekii Hello, Are you use this initial sequence:

oled.begin(132, 64, sizeof(tiny4koled_init_132x64), tiny4koled_init_132x64);
oled.clear();
oled.on();
oled.init();

?

Note that the width here is 132 instead of 128...
@datacute hi
i use this order (132, 64, sizeof(tiny4koled_init_132x64), tiny4koled_init_132x64); but the display is upside down
Is there a way to solve it?

@Deoptim
Copy link
Author

Deoptim commented Jun 21, 2022

@hamedmalekii
The first thing I advise you to do is to check the display that it works at all - on Arduino with some library and take an example of rendering.

Oled

There, by default, this SH1106 display is already selected.
SDA and SCL are standard for Arduino

GyverOLED

Or this, also by default used SH1106

@datacute
Copy link
Owner

@hamedmalekii are you using Deoptim's code or the latest version of my code?
The latest version of my code will probably mostly work if you use the begin method that specifies the offsets and size, but use the init sequence for the 128x64 SSD1306:

oled.begin(2, 0, 132, 64, sizeof(tiny4koled_init_128x64), tiny4koled_init_128x64);

There is also a function to rotate 180 degrees:

oled.setRotation(1)

(try both 1 and 0)

@hameed-maleki
Copy link

@hamedmalekii are you using Deoptim's code or the latest version of my code? The latest version of my code will probably mostly work if you use the begin method that specifies the offsets and size, but use the init sequence for the 128x64 SSD1306:

oled.begin(2, 0, 132, 64, sizeof(tiny4koled_init_128x64), tiny4koled_init_128x64);

There is also a function to rotate 180 degrees:

oled.setRotation(1)

(try both 1 and 0)

thanks
i try it

@hameed-maleki
Copy link

hameed-maleki commented Jul 30, 2022

@hamedmalekii are you using Deoptim's code or the latest version of my code? The latest version of my code will probably mostly work if you use the begin method that specifies the offsets and size, but use the init sequence for the 128x64 SSD1306:

oled.begin(2, 0, 132, 64, sizeof(tiny4koled_init_128x64), tiny4koled_init_128x64);

There is also a function to rotate 180 degrees:

oled.setRotation(1)

(try both 1 and 0)

dont work
after use oled.setRotation(1)
i have this error

exit status 1
expected ';' before 'oled'

@SpenceKonde
Copy link

This issue clearly appears to be a missing ; on the line immediately preceding that line. It has likely been solved by now, and is probably closable.

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

4 participants