开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: W8TEE Software Release 1.05


 

Hi Jack

I've looked again at your message and realised that I had misunderstood what you asked.

I had added the display id's in the setup but that was the only change, in the code I could not see where you altered the "WPM:" text position. ?I have a fresh look at the code this morning and found what I think is the correct place. Around line 420 in the?void UpdateFields( section I cdded the following

? } else { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // Only for WPM
? ? tft.setCursor(x + 5, y + (switchBoxHeight / 4));
?
? ? tft.setCursor(x, y + (switchBoxHeight / 4));
? ? if (g_identifier == 0x7796 || g_identifier == 0x9487) { // added line
? ? ? tft.setCursor(x + 10, y + (switchBoxHeight / 4) - 10); // added line
? ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // added line
? ? tft.setTextColor(WHITE, bc);

Now I get the text correctly positioned, see the photo. ?You've said that you use a 3.96" display, I thought my 3.5" had the same screen resolution of 320 x 480 so I'm not sure why the WPM was not positioned correctly. ?Perhaps you could enlighten me, another learning curve.

I've coded mainly PIC's and 8051's and had very little "C" experience until starting on the Arduino last year.

Best regards

David G8DJM
?

Join [email protected] to automatically receive all group messages.