-
Notifications
You must be signed in to change notification settings - Fork 1.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
SSD1363 module display error #2298
Comments
I think the issue is the missing 0x05c command, which you pointed out in 3. Lines 190 to 193 in fc31269
Depending on which constructor your have used, we probably need to send the byte 0x05c as a command byte prior to line 193. |
Moreover the SSD1363 seems to use a different configuration for the DC flag. It must be high during argument sending, but must be low for SSD1362: u8g2/tools/codebuild/codebuild.c Line 2056 in fc31269
The "cad_001" is the specification in u8g2 for this, it means for the SSD1362: However for the SSD1363 it sould be (according to your datasheet): All in all the SSD1363 seems to be more similar to the SSD1322, which uses the same CAD layout and also reqires the 0x5c command for data write: u8g2/tools/codebuild/codebuild.c Line 2031 in fc31269
I suggest to use an SSD1322 constructor for your display. It is worth a try. |
Dear Olikraus, Here are the notes on the main changes:
the .c/.h file are attached here: I‘m not very familiar to the structure of U8G2, so the codes are not in u8g2 style... just for your reference. Thanks for your hints. I'll try to rewrite the codes as your suggestions. |
Thanks for the code. I will look into that once I have some time for it. I still wonder whether the ssd1322 will work... |
I tried
The data transmit on i2c bus looks like : Compare to the worked codes, the transmitted data look like: It seems the command+arg series could not be transmitted in one i2c package. The logic_analyzer data is attached for your reference. You can use DSView to view them. |
The cad_001 / cad011 are indeed only for SPI interface. Maybe i was confused here, but the u8x8_cad_ssd13xx_fast_i2c() should be correct for I2C. |
Can you please post the logic_analyzer data for write to RAM sequence? I has been weeks and I still cannot get it to work. |
la_data.zip |
Thank you so much. I managed to run it at last. For now just using the Wire library and sending the codes I copied from your logic analysis files. Although it works its seems very slow, despite that I run I2C at 1HMz clock speed and managed to send whole line in one communication burst I get only about 2 fps and frame tearing. Is it slow like this for you also? Link to video of result I got: https://youtu.be/XztWQ6t6XSM |
Hello Olikraus,
I tried an SSD1363 module (i2cinterfaced, 256x128). The panel always shows the random pattern.
Based on SSD1362 codes, what I have changed in the codes are as follow:
U8X8_CA(0xfd, 0x12), /* unlock /
//U8X8_C(0xAE), / display off */
U8X8_CAA(0xA0, 0x20, 0x00),
U8X8_CA(0xA2, 0x80),
U8X8_CA(0xC1, 0xFF),
U8X8_CA(0xCA, 0x7F),
U8X8_CA(0xAD, 0x90),
U8X8_CA(0xB3, 0x61),
Normal display mode command: from 0xA4 to 0xA6 (according to the datasheet)
SSD1363.pdf
add the write RAM command in the function u8x8_d_ssd1362_common() before write data.
u8x8_cad_SendCmd(u8x8, 0x05C);
It seems that the control command could work properly, but the data could not write into the display RAM.
Could you kindly help on the issue?
Thanks!
James
The text was updated successfully, but these errors were encountered: