NHD-2.7-12864WDW3 with SSD1322 - Grayscale Problem
Hello,
for a new project I have to put the mentioned display into operation
and I'm a bit confused about the data sheet in relation to what
I am observing.
I have used the Arduino code and extended it.
Now to my comprehension problem:
According to the SSD1322 data sheet, 4 bits are always mapped to one pixel (16
gray scale).
1 observation:
If this were really the case, then I would only have to transfer 64 bytes
to control all 128 pixels in a line. However, this is not the case.
I have to send 128 bytes.
2 Observation:
I have the impression that I can display more than just 16 shades of gray.
Could it be that Newhaven has combined 2 segments into one pixel?
Which would explain the 1 observation.
In the attached picture I have shown 5 cases to compare them.
1. bar with 10px height, bit 3:0, pixel = 0x0F
2. bar with 10px height, bit 7:4, pixel = 0xF0
3. grayscale pixel = 0-127
4. grayscale pixel = 128-255
5. grayscale pixel = 0-16 simultaneously on bit 7:4 & bit 3:0
I hope one of you can help me, because somehow it doesn't make sense to me.
What is the relationship between byte and pixel and what is the correct way to handle the gray levels?
Greetings
Adam
-
Hi Adam,
You are correct in saying that each pixel corresponds to 2 segments on this display. There are 256 segments on the display, which is why you need to transfer 128 bytes to control all pixels on a line.
On this display there are 16 gray scale levels, each of which can be set to a value from 0 to 180.
Hope this clarifies any confusion.
0
Please sign in to leave a comment.
Comments
1 comment