Mika
Registered: 11/11/08
Posts: 19
|
| Posted 05/03/09 at 01:30 AM | Reply with quote #1 |
|
I have posted a few times about problems interfacing my OLED 32024-P1T with and MCU. Previously, I used the OLED 128-GMD1 and my data displays correctly with no problems. I have loaded the P1T with the SPE and cannot get it to display the information correctly. I also looked at the serial commander to verify the code and it seems to be the same. Shouldn't the SPE require no modification of my MCU code to display the exact same data?
|
| Loading... | |
Mika
Registered: 11/11/08
Posts: 19
|
| Posted 05/03/09 at 02:27 AM | Reply with quote #2 |
|
I also tried sending the code to the display via terminal. I used the code output by serial commander and I still have a blank screen. Any suggestions? |
| Loading... | |
ESPsupport
Moderator
Registered: 27/01/09
Posts: 4,272
|
| Posted 05/03/09 at 06:55 AM | Reply with quote #3 |
|
Since the OLED 32024-P1T is a 240 x 320 you will need more than one byte for the Y resolution, hence a program for the OLED 128-GMD1 will need changes to work on your new display.
So increase all the Y sizes to two bytes and you should be in business, remembering that the currently available SPE is a subset of the full serial command set. |
| Loading... | |
Mika
Registered: 11/11/08
Posts: 19
|
| Posted 06/03/09 at 12:54 AM | Reply with quote #4 |
|
Unfortunately, I had no luck doing that. I tried by sending the output from serial commander via realterm and had no luck. |
| Loading... | |
ESPsupport
Moderator
Registered: 27/01/09
Posts: 4,272
|
| Posted 06/03/09 at 06:37 AM | Reply with quote #5 |
|
Can you please post what you were sending via realterm and I'll have a look at it? |
| Loading... | |
Mika
Registered: 11/11/08
Posts: 19
|
| Posted 07/03/09 at 12:56 AM | Reply with quote #6 |
|
Well I finally got part of the data to display from the MCU, but not all of it. I have 6 variables I am trying to print. They are all unsigned chars, h1, h2, m1, m2, s1, s2. From the MCU I print: Code:
_Put232('S');
_Put232(0x4B);
_Put232(0x00);
_Put232(0x01);
_Put232(0x03);
_Put232(0xF8);
_Put232(0x00);
_Put232(0x03);
_Put232(0x08);
_Put232(h1);
_Put232(0x00);
and so on for each variable. The problem is only some of the variables are showing. This is a clock so it should read h1 h2 m1 m2 s1 s2. Instead it reads *blank* *blank* *blank* *blank* s1 *blank*. s2 changes every 10 seconds as it should, after 1 minute has passed m1 will display. Any ideas? |
| Loading... | |
ESPsupport
Moderator
Registered: 27/01/09
Posts: 4,272
|
| Posted 07/03/09 at 07:17 AM | Reply with quote #7 |
|
The code snippet you have posted works fine for me (despite the larger than allowed manification).
Are you sure h1, h2, etc. contain valid numbers? (invalid data will display as blanks)
A larger snippet might give more clues |
| Loading... | |
Mika
Registered: 11/11/08
Posts: 19
|
| Posted 09/03/09 at 11:17 PM | Reply with quote #8 |
|
I am sure of the content in h1 and h2. This data displays correctly using the uOLED 128-GMD1. Sorry for the slow replies, I will attempt to give you a better code sample when I can
Thanks for the help! |
| Loading... | |