# 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
          TV/Video                 0x00000000EA15916E
          TV_Mute                  0x00000000F609FB04
          Menu                     0x00000000E916916E
          Clear                    0x00000000E01F916E
          Skip_Commercial          0x0000000022DD916E
          OK                       0x00000000718E916E	# also Clock
          Long_Play                0x00000000B748916E
          Stop                     0x00000000FE01916E
          Still_Image              0x00000000F40B916E
          Record                   0x00000000F609916E
          Fast_Backward            0x00000000FD02916E
          Play                     0x00000000F708916E
          Fast_Forward             0x00000000FC03916E
          One                      0x00000000FA05916E
          Two                      0x00000000F906916E
          Three                    0x00000000F807916E
          Four                     0x00000000F30C916E
          Five                     0x00000000F20D916E
          Six                      0x00000000F10E916E
          Seven                    0x00000000F00F916E
          Eight                    0x00000000E31C916E
          Nine                     0x00000000E21D916E
          Zero                     0x00000000FB04916E
          Smart_Stop               0x0000000047B8916E
          Smart_Repeat             0x0000000049B6916E
          Lock                     0x00000000C03F916E

#         These are the codes sent in Video mode by the remaining keys.
          Video_Power              0x00000000EB14916E
          Video_AV                 0x00000000A956916E
          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_AV                    0x00000000F40BFB04
          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

