phil99
 Guru
 Joined: 11/02/2018 Location: AustraliaPosts: 3321 |
| Posted: 12:14pm 22 Mar 2024 |
|
|
|
I should have provided all the info. with the program but didn't think anyone would be interested.
The TV is old and was manufactured for a now defunct local electronics store group - Dick Smith Electronics. The remote is quite flimsy and broke when I dropped it. Glued it together but now the buttons have worn away the graphite ink. I have temporarily solved that by putting a dot of glue on them and filing a 2H pencil tip over the glue.
I have a couple of universal remotes but neither can produce the right codes. Because it is a "house" brand I doubt any can, except a learning one. This is sort of that, it can also learn Sony codes as the Pico IR function can read both. Found an old remote in the junk box so thought I would make a translator for it, just an excuse to use the Sub really.
I found Select Case produced a noticeable lag with 45 buttons to sort through hence using array indices for the input codes and the array contents for the output codes. Almost instant response. Some wasted memory as only 45 out of 256 possibilities are used for this remote.
The program copies itself to A:, appends the In and Out codes to the end of the copy, then copies that back to program memory and runs. Detecting the appended codes it switches to Translate mode.
Not very sensible but interesting to write. Edited 2024-03-22 22:16 by phil99 |