I guess what I'm asking is, would there be any way to just have a function like this (psuedocode)
Code: Select all
function sendCode(frequency, tvBrand, code){
someAlgorithmHere;
}
Code: Select all
1
000 0000
2
000 0001
3
000 0010
4
000 0011
Channel up
001 0000
Channel down
001 0001
Power on
001 0101
Power off
010 1111
Volume up
001 0010
Volume down
001 0011
I don't know, it just seems like the code we use is overly complicated