-
Notifications
You must be signed in to change notification settings - Fork 1k
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
SSD1322 on ESP32S SPI BUS (HSPI) #1364
Comments
Please put your code inside ```. Includes are so broken by parsing them as html tags. |
Did you try the sw constructor? At least to check whether the wiring is ok. |
@olikraus do you mean using this instead? #define SPI_MOSI_PIN 13
#define SPI_MISO_PIN 12
#define SPI_SCK_PIN 14
#define SPI_CS_PIN 15
#define SPI_DC_PIN 10
//U8G2_ST75256_JLX25664_F_4W_HW_SPI u8g2(U8G2_R0, /* CS=*/ SPI_CS_PIN, /* reset=*/ U8X8_PIN_NONE);
U8G2_ST75256_JLX25664_F_4W_SW_SPI u8g2(U8G2_R0, /*SCK=*/SPI_SCK_PIN , /*MOSI=*/SPI_MOSI_PIN, /*CS=*/SPI_CS_PIN, /*DC=*/SPI_DC_PIN , U8X8_PIN_NONE); Should there be any difference? It still does not show any error message. |
I also strongly suggest to connect the reset pin. |
So as i was connecting the reset pin, i noticed that my pinout I was using, did not match with the description in the datasheet, so i changed some other pins aswell (I updated the Code in the Issue Description). But even with that it still doesn't show anything on the Display. |
In your initial post you have referenced a display with SSD1322 controller. Your constructor is for a display of the same size but with a ST75256 controller. Obviously this will not work. If you own the display described in the reference under JLX25664, then you should use one of the following constructors: Also note, that you need to enable U8g2 16 bit mode (unless you use the latest u8g2 release, which will enable 16 bit mode automatically for your board) |
Thank you, with this change I finally could Display something for the first time :) |
I think the box is caused by 8 bit mode. Did you change to 16 bit mode (see FAQ)? |
yes, I uncommented the Line |
so everything works now? |
Sorry, i meant that i already had the line uncommented. But i can't even check anymore if it works, because somehow since i pressed the reset button it doesn't show anything at all on the display. |
oh |
Update: If I change the delay to 500ms, I have almost everytime something on the Display, sometimes it doen't work, but i guess it's a hardware problem. Besides this, it also doesn't show anything if I use the drawStr on the wrong Coordinates or use Values between 10..15...20.. and so on. And the Display somehow doesn't use its full size, it cuts the bottom of the text already at a pointer(10,20). |
You have not sent any code, so it is difficult to say what is wrong here, but from the picture I would say, you have used the "1" constructor but instead you should use the "F" constructor. |
Is "U8G2_ST75256_JLX25664_F_4W_SW_SPI" not the "F" constructor? |
hmm, so the code in your initial post will exactly show the above picture?
By default the "hello world" will be printed in the second line:
Will it appear? |
Very strange, I never saw such a behavior before. Lines 247 to 248 in 3c6460a
Please locate u8x8_d_ssd1322.c on you local harddisk (should be in the arduino library folder) and double/increase the above mentioned values. Especially the post cs delay might have cause the problems. |
Changing the values also changes the pattern of the animated pixels so it really might be something with the Chip Select. But even after playing around with the values I couldn't get rid of the error. |
Can you choose a different pin for the CS signal? Maybe also change wiring for the CS signal completely. |
I tried that, but sadly didn't change anything. |
oh, long time pending topic here. |
I use
And I am trying to connect these two together. But somehow nothing is displayed, neither I receive any Signals from the GPIO13(MOSI).
I tried using some Demo Codes Like this:
But It does not work.
I even tried things, suggested in here #1331
The text was updated successfully, but these errors were encountered: