# Config file for Packard Bell Remotes (with repeat codes!)
# created by Samuel Wood (sjw@umr.edu)
#
# brand:             Packard Bell Remote
# model:             El Cheapo Packard Bell Remote
#
# This is a config file for the cheap excess Packard Bell remotes 
# you sometimes can buy from online auctions like www.onsale.com.
#
# The receiver that comes with it hooks into the serial port and works 
# fine with lirc 0.5.4.
#
# The reciever that comes with the remote is near garbage. If 
# you don't point almost directly at it, it will not detect. But
# it's simpler than building your own. :-)
#
# Repeat works fine for me. You just have to modify or add the 
# "repeat=" lines in your .lircrc.
#
# irrecord was used to generate the file, then I modified and 
# added repeat codes. 
#
# The button names used are identical to what was printed on the 
# remote, except for the number pads (using actual numbers like 
# "1" and so forth did not seem to work. Similarly, '*' is Star 
# and '#' is Hash. LMB and RMB refer to the two mousepad buttons
# on the left and right respectively.
#
# I still need to modify the gap setting. Right now, if you don't 
# hold the button down long enough, it may not register, but if
# you hold it too long, it will detect a repeat or two. Feel free
# to modify this to work better. If you get it to work better, send
# me a copy. :-)

begin remote

  name  PackBell
  bits           15
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       9065  4500
  one           597   532
  zero          597  1643
  ptrail        597
  pre_data_bits   16
  pre_data       0xF708
  post_data_bits  1
  post_data      0x0
  gap          107000
  repeat_bit      0
  repeat          9050 2250
 
      begin codes
	'HELP'                0x0000000000006F90    # Help
	'PHONE'               0x0000000000004FB0    # Phone
	'MESSAGE'             0x0000000000006E91    # Message
	'SRS'                 0x0000000000004EB1    # SRS
	'CD'                  0x0000000000002FD0    # CD
	'AUX1'                0x0000000000000FF0    # Aux1
	'AUX2'                0x0000000000002ED1    # Aux2
	'AUX3'                0x0000000000000EF1    # Aux3
	'LMB'                 0x00000000000023DC    # LMB
	'RMB'                 0x000000000000639C    # RMB
	'UP'                  0x00000000000037C8    # Up
	'DOWN'                0x00000000000057A8    # Down
	'LEFT'                0x0000000000007788    # Left
	'RIGHT'               0x00000000000017E8    # Right
	'MENU'                0x0000000000007B84    # Menu
	'MUTE'                0x0000000000003BC4    # Mute
	'ENTER'               0x00000000000047B8    # Enter
	'CHANNELUP'           0x00000000000027D8    # CHUp
	'CHANNELDOWN'         0x0000000000006798    # CHDown
	'VOLUMEUP'            0x0000000000005BA4    # VolUp
	'VOLUMEDOWN'          0x0000000000001BE4    # VolDown
	'DISPLAY'             0x00000000000007F8    # Display
	'ONE'                 0x0000000000005EA1    # One
	'TWO'                 0x0000000000001EE1    # Two
	'THREE'               0x0000000000000BF4    # Three
	'FOUR'                0x0000000000007E81    # Four
	'FIVE'                0x0000000000003EC1    # Five
	'SIX'                 0x0000000000004BB4    # Six
	'SEVEN'               0x0000000000005FA0    # Seven
	'EIGHT'               0x0000000000001FE0    # Eight
	'NINE'                0x0000000000002BD4    # Nine
	'ZERO'                0x0000000000003FC0    # Zero
	'STAR'                0x0000000000007F80    # Star
	'HASH'                0x0000000000006B94    # Hash
      end codes

end remote
