开云体育

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

Re: W8TEE Software Release 1.05


Jack Purdum
 

Actually, rel 1.05 has a variable named displaySize that can be either LARGE or SMALL, as set in setup(). I think a simple if-else using displaySize will take care of it.

Jack, W8TEE



From: David S via Groups.Io <dcsuk10@...>
To: [email protected]
Sent: Friday, August 4, 2017 11:46 AM
Subject: Re: [BITX20] W8TEE Software Release 1.05

On Fri, Aug 4, 2017 at 06:38 am, Jack Purdum wrote:
? } else { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // Only for WPM
? ? if (g_identifier == 0x7796 || g_identifier == 0x9487) { ?// added line
? ? ? tft.setCursor(x + 10, y + (switchBoxHeight / 4) - 10); // added line
? ? } else { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // added line
? ? ? tft.setCursor(x + 5, y + (switchBoxHeight / 4));
? ? }
? ? tft.setTextColor(WHITE, bc);
? ? tft.print(str);
? ? tft.setTextColor(YELLOW, bc);
? ? tft.print(wordsPerMinute);
?
? }
Hi Jack

Works fine, thanks. ?looking at Matts message?0x9488, is one of the id's in your original code, given that there's so many different display id's out there if may be better to use a case: switch like in your setup, it would be much easier to add additional displays with the code that way.

Best Regards

David G8DJM


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