Hey ekman,
Two things:
- The array needs to have the values separated by commas
- The array should be declared outside of that command.
Here's a program i got from THIS BLOG : Digitalduino: Use sonar to control a TV!
[/quote]
Unfortunately I didn't get that working either, I can get the IR-led sending (flashing verified by phone camera) but the device is not reacting properly. I managed to decode the remote using LIRC and got the following results, but for the life of me I can really get any good information on how to convert it.
begin remote
name /home/pi/lircd.conf
bits 3
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
one 204 7403
zero 204 4867
ptrail 204
pre_data_bits 8
pre_data 0x80
gap 121717
toggle_bit_mask 0x200
begin codes
KEY_UP 0x1
KEY_STOP 0x3
KEY_DOWN 0x2
end codes
end remote