NHD 12864 WDY3 OLED Putting Character To Screen
Hello,
I have NHD 2.7 12864 WDY3 OLED, I am able to initiliaze and execute sample arduino codes on it. But i have difficulty with putting characted o the screen my procedure to put character on the screen is:
void PutChar(char ch)
{
Set_Column_Address_12864(0x1C,0x5B); //1C & 5B = DISPLAY Start & End address.
Set_Row_Address_12864(0x00,0x3F);
Set_Write_RAM_12864();
int count=0;
for(i=0;i<5;i++)
{
data(Ascii[ch][count]);
count++;
}
}
But there is nothing to display on the screen, when i investigate D0..7 pins with logical analyzer there are some changes on the pins but no output on the screen. At that point what may i missing out here.
Does Font table change according to its pixel size for example 12864 requires different font table than 12832 or 25696
Thanks .
-
Hello Nazim,
Thank you for choosing our displays. When your initializing the sample codes do you change any of the addressing? We have an example on our Github using the NHD-2.3-12832-UC that could clear up some of your troubles. May be an issue with you Ascii function and/or calling during the output.
Github: https://github.com/NewhavenDisplay/NHD-2.23-12832UC_Example/blob/main/2.23%20OLED%206800%268080/2.23_8bit_6800_or_8080.ino.ino
Thanks,
ZP0 -
No, i didnt change any address i initialized according to this sample code https://www.newhavendisplay.com/resources_dataFiles/excode/txt/Arduino/NHD-2.7-12864.txt.
In the link that you have, i noticed there is a page, does it mean is a row?
By the way i am using NHD 12864 WDY3 with SSD1322 controller. The code you have shared is compatible with this version?
Thanks.0 -
Hi Nazim,
In my example the page=row. That example shows the Ascii Function for writing you pixels to form the needed characters and the output. Is your following the same procedure?
Thanks,
ZP0 -
Yes I follow the same procedure. 0
Please sign in to leave a comment.
Comments
4 comments