# this config file was generated with the help of
# xmode2-0.7.0 on 2004-11-12
#
# contributed by Adrien Beau <adrien.put_my_name_here@free.fr>
#
# brand:                       LG
# model no. of remote control: N/A
# devices being controlled by this remote: many LG VCRs
#
# This remote is sold as part of many LG VCR packages -- mine is a
# VF28, it might also be known as an EC281S. It controls most
# features of the VCR, and can also send some basic TV codes if
# you have an LG TV. It uses the NEC encoding, so it is unlikely
# you will be able to use it to control devices other than LG
# VCRs.
#
# The remote has two modes: Video (VCR) and TV. You switch between
# the modes by pressing the appropriate key near the top of the
# remote. Those two keys send no code to the devices, they just
# change the mode of the remote.
#
# The timings and protocol information for the NEC encoding were
# obtained from http://www.ustr.net/infrared/nec.shtml
# This helped me ensure that the information below is accurate and
# can be used as a basis for other NEC-encoded remotes. I had to
# increase the eps to 60% before the remote could be read by my
# SIR dongle. The gap was measured with xmode2, and tuned to get
# better key repeats.

begin remote

  name  LG_VCR_Remote
  bits           32
  flags SPACE_ENC|REVERSE
  eps            60
  aeps          100

  header       8960  4200
  one           560  1680
  zero          560   560
  ptrail        560
  gap          85000
  repeat       8960  2240
  frequency    36000

      begin codes
#         These keys send the same code in both modes.
	'EJECT'               0x00000000FF00916E    # Eject
	'TV/VIDEO'            0x00000000EA15916E    # TV/Video
	'TV_MUTE'             0x00000000F609FB04    # TV_Mute
	'MENU'                0x00000000E916916E    # Menu
	'CLEAR'               0x00000000E01F916E    # Clear
	'SKIP_COMMERCIAL'     0x0000000022DD916E    # Skip_Commercial
          OK                       0x00000000718E916E	# also Clock
	'LONG_PLAY'           0x00000000B748916E    # Long_Play
	'STOP'                0x00000000FE01916E    # Stop
	'STILL_IMAGE'         0x00000000F40B916E    # Still_Image
	'RECORD'              0x00000000F609916E    # Record
	'FAST_BACKWARD'       0x00000000FD02916E    # Fast_Backward
	'PLAY'                0x00000000F708916E    # Play
	'FAST_FORWARD'        0x00000000FC03916E    # Fast_Forward
	'ONE'                 0x00000000FA05916E    # One
	'TWO'                 0x00000000F906916E    # Two
	'THREE'               0x00000000F807916E    # Three
	'FOUR'                0x00000000F30C916E    # Four
	'FIVE'                0x00000000F20D916E    # Five
	'SIX'                 0x00000000F10E916E    # Six
	'SEVEN'               0x00000000F00F916E    # Seven
	'EIGHT'               0x00000000E31C916E    # Eight
	'NINE'                0x00000000E21D916E    # Nine
	'ZERO'                0x00000000FB04916E    # Zero
	'SMART_STOP'          0x0000000047B8916E    # Smart_Stop
	'SMART_REPEAT'        0x0000000049B6916E    # Smart_Repeat
	'LOCK'                0x00000000C03F916E    # Lock

#         These are the codes sent in Video mode by the remaining keys.
	'VIDEO_POWER'         0x00000000EB14916E    # Video_Power
	'VIDEO_AV'            0x00000000A956916E    # Video_AV
          Video_Program_Up         0x000000007D82916E	# also Up
          Video_Program_Down       0x000000007689916E	# also Down
          Video_Volume_Up          0x000000006F90916E	# also Right
          Video_Volume_Down        0x000000007C83916E	# also Left

#         These are the codes sent in TV mode by the remaining keys.
	'TV_POWER'            0x00000000F708FB04    # TV_Power
	'TV_AV'               0x00000000F40BFB04    # TV_AV
          TV_Program_Up            0x00000000FF00FB04	# also Up
          TV_Program_Down          0x00000000FE01FB04	# also Down
          TV_Volume_Up             0x00000000FD02FB04	# also Right
          TV_Volume_Down           0x00000000FC03FB04	# also Left
      end codes

end remote
