tjlab-jf3hzb/Digital_VFO_with_analog_dial

Display noise around the top and right-hand edges.

Opened this issue · 4 comments

Hi,

I've bee trying out your code and it all seems fine with the exception of 'noise' around the top end right-hand edges of the display. I was wondering if you had seen this before and what you did to fix it? See image below.

In the UK there has been a recent article in Practical Wireless - October 2022 - https://www.radioenthusiast.co.uk/store/back-issues/practical-wireless/vol-98-no-10-october-2022-issue-214 about using your code and I see that the author has the same issue but does not mention it?

Any help, or guidance, yuo can give me would be much appreciated.

Martin
G0PJO

Display

Hi Martin

The noise around the top end right-hand edges of the display
disappears by modifying lines 47 to 52 of "display.cpp" as follows.

//---------------------------------------------------
d_Command(0x2A);
SPI.write(0); SPI.write(0+2); //modified
SPI.write((Xw-1)>>8); SPI.write(Xw-1+2); //modified
d_Command(0x2B);
SPI.write(0); SPI.write(0+1); //modified
SPI.write((Yw-1)>>8); SPI.write(Yw-1+1); //modified
//-------------------------------------------------------

Tj Uebo
JF3HZB

Hi,

Many thanks for the quick reply on this TJ, I'll tryy it out soon. The display in question was one of these:

https://www.ebay.co.uk/itm/185488744237

Perhaps it was the wrong device?

Martin

Hi
I don't think it's the wrong device.
Some LCDs with ST7735 driver seem to have offset pixel addresses.

Tj