#
# contributed by Olaf Liebe
#
# brand:      Grundig
# model:      TP 820 SAT
#
# notes:
# - the v/*, s1/* and s2/* buttons are available by pressing
#   the "VIDEO", "SAT 1/TV" or "SAT 2" buttons and another
#   button on the remote control at the same time.
# - "VIDEO + power" and "VIDEO + -" are recognized as being
#   the same.
# - "VIDEO + txt" is recognized as s2/1, s2/0 and s2/8

begin remote
	name   tp820sat
	flags  RC5

	aeps   100

	header 530 2650
	bits   10
	gap    120500

	one    530 530
	zero   530 530

	begin codes
	'0'                   0x1eb                 # 0
	'1'                   0x0eb                 # 1
	'2'                   0x16b                 # 2
	'3'                   0x06b                 # 3
	'4'                   0x1ab                 # 4
	'5'                   0x0ab                 # 5
	'6'                   0x12b                 # 6
	'7'                   0x02b                 # 7
	'8'                   0x1cb                 # 8
	'9'                   0x0cb                 # 9
	'OK'                  0x1fb                 # ok
	'POWER'               0x17b                 # power
	'+'                   0x1db                 # +
	'-'                   0x0db                 # -
	'?'                   0x0bb                 # ?
	'A/B'                 0x03b                 # a/b
	'C-'                  0x09b                 # c-
	'C+'                  0x19b                 # c+
	'B-'                  0x05b                 # b-
	'B+'                  0x15b                 # b+
	'AKT'                 0x1bb                 # akt
	'PERI'                0x08b                 # peri
	'MUTE'                0x0fb                 # mute
	'P+'                  0x153                 # p+
	'P-'                  0x053                 # p-
	'I'                   0x093                 # i
	'TXT'                 0x1e3                 # txt
	'RED'                 0x143                 # red
	'GREEN'               0x103                 # green
	'YELLOW'              0x043                 # yellow
	'BLUE'                0x113                 # blue

	'S1/0'                0x1ef                 # s1/0
	'S1/1'                0x0ef                 # s1/1
	'S1/2'                0x16f                 # s1/2
	'S1/3'                0x06f                 # s1/3
	'S1/4'                0x1af                 # s1/4
	'S1/5'                0x0af                 # s1/5
	'S1/6'                0x12f                 # s1/6
	'S1/7'                0x02f                 # s1/7
	'S1/8'                0x1cf                 # s1/8
	'S1/9'                0x0cf                 # s1/9
	'S1/OK'               0x1ff                 # s1/ok
	'S1/POWER'            0x17f                 # s1/power
	'S1/+'                0x1df                 # s1/+
	'S1/-'                0x0df                 # s1/-
	'S1/?'                0x0bf                 # s1/?
	'S1/A/B'              0x03f                 # s1/a/b
	'S1/C-'               0x09f                 # s1/c-
	'S1/C+'               0x19f                 # s1/c+
	'S1/B-'               0x05f                 # s1/b-
	'S1/B+'               0x15f                 # s1/b+
	'S1/AKT'              0x1bf                 # s1/akt
	'S1/PERI'             0x14f                 # s1/peri
	'S1/MUTE'             0x0ff                 # s1/mute
	'S1/P+'               0x157                 # s1/p+
	'S1/P-'               0x057                 # s1/p-
	'S1/I'                0x097                 # s1/i
	'S1/TXT'              0x1e7                 # s1/txt
	'S1/RED'              0x147                 # s1/red
	'S1/GREEN'            0x107                 # s1/green
	'S1/YELLOW'           0x047                 # s1/yellow
	'S1/BLUE'             0x117                 # s1/blue

	'S2/0'                0x1ee                 # s2/0
	'S2/1'                0x0ee                 # s2/1
	'S2/2'                0x16e                 # s2/2
	'S2/3'                0x06e                 # s2/3
	'S2/4'                0x1ae                 # s2/4
	'S2/5'                0x0ae                 # s2/5
	'S2/6'                0x12e                 # s2/6
	'S2/7'                0x02e                 # s2/7
	'S2/8'                0x1ce                 # s2/8
	'S2/9'                0x0ce                 # s2/9
	'S2/OK'               0x1fe                 # s2/ok
	'S2/POWER'            0x17e                 # s2/power
	'S2/+'                0x1de                 # s2/+
	'S2/-'                0x0de                 # s2/-
	'S2/?'                0x0be                 # s2/?
	'S2/A/B'              0x03e                 # s2/a/b
	'S2/C-'               0x09e                 # s2/c-
	'S2/C+'               0x19e                 # s2/c+
	'S2/B-'               0x05e                 # s2/b-
	'S2/B+'               0x15e                 # s2/b+
	'S2/AKT'              0x1be                 # s2/akt
	'S2/PERI'             0x08e                 # s2/peri
	'S2/MUTE'             0x0fe                 # s2/mute
	'S2/P+'               0x156                 # s2/p+
	'S2/P-'               0x056                 # s2/p-
	'S2/I'                0x096                 # s2/i
	'S2/TXT'              0x1e6                 # s2/txt
	'S2/RED'              0x146                 # s2/red
	'S2/GREEN'            0x106                 # s2/green
	'S2/YELLOW'           0x046                 # s2/yellow
	'S2/BLUE'             0x116                 # s2/blue

	'V/PWR/-'             0x19d                 # v/pwr/-
	'V/+'                 0x15d                 # v/+
	'V/P+'                0x0ad                 # v/p+
	'V/P-'                0x1ad                 # v/p-
	'V/I'                 0x09d                 # v/i
	'V/?'                 0x05d                 # v/?
	'V/C-'                0x0ed                 # v/c-
	'V/C+'                0x16d                 # v/c+
	'V/B-'                0x02d                 # v/b-
	'V/B+'                0x1cd                 # v/b+
	end codes
end remote
