-
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
Winstar WEO012864 with SSD1309 chip #681
Comments
Note, I have just tried switching to u8g2_Setup_ssd1306_128x64_noname_f (as I read somewhere they are almost compatible), now I see the single line not only moving backward, but also up on the screen. |
Difficult if this is not an Arduino environment. Yet USARTTx looks strange to me. |
@olikraus Actually USART_Tx simply sends out the bytes out via HW SPI. Is there some buffer offsets that differ per chip/setup? What are the differences between the different noname1 noname2 setups? |
I didn't saw the picture. At least you see something. I don't have access to all of my resources at the moment. Maybe your display requires a complete different setup. Difference between noname1 and 2 is a different setup, but I can't verify this at the moment. |
@olikraus So my winstar display uses a SSD1309 display, but I saw a definition for another winstar display that uses the SH1106. If I replace
by
I get the exact same lines that are working, but 180° flipped. And still the unwanted scrolling backward with every update. I'm guessing there's something wrong with some offsets? The datasheet of the display isn't great. (cfr. the URL in the first post.) |
Maybe you could also check SSD1306 drivers. |
Also Strange. As I said, I can't look closer at the moment. |
Still not fully working but I have an update. Next to the above I have modified inside u8x8_d_ssd1309.c:
Drawing the following:
Gives us: |
I received following example program from the manufacturer: |
@olikraus Flipped the display, Now we can see that a block that is in the bottom right should be in the top left. |
@olikraus Because I wanted to be sure that all setup for the display was performed well, I wrote following test code to test auto-increment of the indexes:
Result is as expected, 8 pixels are written with every iteration of the for loop. So the Init should be ok. |
ok, i think the SSD1309 implementation is broken. |
I have created beta 2.23.17. Will it help? You can download the latest U8g2 beta release from here: https://github.com/olikraus/U8g2_Arduino/archive/master.zip
|
@olikraus I will test later today! |
@olikraus I managed to get everything working! I actually needed to comment 3 lines from Also I needed the init code that I already wrote here
Thanks for the assistance you gave! Much appreciated! I hope this thread will help future people using a similar winstar display. |
I am confused about commenting out the curser commands. It may work, but it might be unreliable. Did you test any animation? Like the GraphicsTest.ino? Additionally, this will fully break the u8x8 mode. |
Well actually, the curser commands are "printed" on the display, causing an offset to occur. |
@olikraus In page mode, with your init code, it is like there's only one page working. |
I have ordered a SSD1309 display for further testing. |
@olikraus Investigating further it seems that on my platform, after initial config, once I have written something to the display, command mode is not working anymore and all commands are interpreted as data. Even though the toggling of the DC line is called. Still investigating... |
It explains why horizontalmode was working because that one does not need commands afterwards. |
True ... Do we need to enable page mode again? |
@olikraus Traced it back to a badly driven D/C line. Fixed it in hardware and page mode is working now. Next: I will test the old init code that you had originally. Hope you didn't go through great expense ordering a SSD1309. |
@olikraus Ok, original init code is working as well now. Ok, so bottomline, a hardware error just cost me a lot of time. Funny thing is, I could actually see the DC line toggle on my measurement point. Just before the FPC connector. Now I feel guilty taking up your time! Next time I'm in Germany, I should buy you a drink! |
Glad you solved the problem :) |
Hi @olikraus , |
Any link to the datasheet? |
https://www.telerex-europe.com/content/files/pdfs/productPdfs/WS/OLED/WEO012864AWAP3N00000.pdf |
I mean, which U8g2 C++ construcutor did you uncomment? What is MCU EFM32GG11? |
TBH, I did not use U8g2 library. I used adafruit_ssd1306 and adafruit_GFX (my OLED has 1309 driver which is compatible with 1306). |
I think: 1309 driver is NOT compatible with 1306
hm, so how can I help here? |
sorry, I thought you got C codes that control 1309-driver through EFM32GG11, |
sure, but who is ghost? |
Oh, I think the original poster got deleted from github and is now called "ghost". |
Hello,
Would anyone be able to help me out driving a Winstar WEO012864 display.
datasheet: https://www.texim-europe.com/getfile.ashx?id=113148
I am communicating over SPI with it and I am able to turn the entire display on using the 0xA5 command. The controller I am using is an EFM32GG11.
When I use the following setup:
Text is drawn on the top portion (bottom for the viewer because it is flipped with the FPC on the other side of the PCB) of the display but it is "scrolling" backward from right to left.
Also the rest of the displays buffers aren't filled.
I have implemented:
Am I missing something? Any help is appreciated!
Kind regards,
Giovanni.
The text was updated successfully, but these errors were encountered: