#
# 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
		KEY_0         0x1eb
		KEY_1         0x0eb
		KEY_2         0x16b
		KEY_3         0x06b
		KEY_4         0x1ab
		KEY_5         0x0ab
		KEY_6         0x12b
		KEY_7         0x02b
		KEY_8         0x1cb
		KEY_9         0x0cb
		KEY_OK        0x1fb
		KEY_POWER     0x17b
		KEY_KPPLUS         0x1db
		KEY_KPMINUS         0x0db
		?         0x0bb
		       0x03b
		        0x09b
		        0x19b
		        0x05b
		        0x15b
		       0x1bb
		      0x08b
		KEY_MUTE      0x0fb
		        0x153
		        0x053
		         0x093
		KEY_TEXT       0x1e3
		KEY_RED       0x143
		KEY_GREEN     0x103
		KEY_YELLOW    0x043
		KEY_BLUE      0x113

		        0x1ef
		        0x0ef
		        0x16f
		        0x06f
		        0x1af
		        0x0af
		        0x12f
		        0x02f
		        0x1cf
		        0x0cf
		       0x1ff
		    0x17f
		        0x1df
		        0x0df
		s1/?        0x0bf
		      0x03f
		       0x09f
		       0x19f
		       0x05f
		       0x15f
		      0x1bf
		     0x14f
		     0x0ff
		       0x157
		       0x057
		        0x097
		      0x1e7
		      0x147
		    0x107
		   0x047
		     0x117

		        0x1ee
		        0x0ee
		        0x16e
		        0x06e
		        0x1ae
		        0x0ae
		        0x12e
		        0x02e
		        0x1ce
		        0x0ce
		       0x1fe
		    0x17e
		        0x1de
		        0x0de
		s2/?        0x0be
		      0x03e
		       0x09e
		       0x19e
		       0x05e
		       0x15e
		      0x1be
		     0x08e
		     0x0fe
		       0x156
		       0x056
		        0x096
		      0x1e6
		      0x146
		    0x106
		   0x046
		     0x116

		     0x19d
		         0x15d
		        0x0ad
		        0x1ad
		         0x09d
		v/?         0x05d
		        0x0ed
		        0x16d
		        0x02d
		        0x1cd
	end codes
end remote
