0

Are codes really this complicated?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Are codes really this complicated?

by magician13134 on Tue Feb 12, 2008 5:11 pm

It seems to me that the power code system used in the TV-B-Gone kit is really complex. I've read a few things about TV codes (nothing major) and it all looks much simpler.

I guess what I'm asking is, would there be any way to just have a function like this (psuedocode)
Code: Select all | TOGGLE FULL SIZE
function sendCode(frequency, tvBrand, code){
     someAlgorithmHere;
}


I found this, and it makes it look really simple...
Code: Select all | TOGGLE FULL SIZE
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


And this:Image


I don't know, it just seems like the code we use is overly complicated
magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am
Location: Ann Arbor

Please be positive and constructive with your questions and comments.