# 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.
          KEY_EJECTCD                    0x00000000FF00916E
                           0x00000000EA15916E
                            0x00000000F609FB04
          KEY_MENU                     0x00000000E916916E
          KEY_CLEAR                    0x00000000E01F916E
                    0x0000000022DD916E
          KEY_OK                       0x00000000718E916E	# also Clock
                          0x00000000B748916E
          KEY_STOP                     0x00000000FE01916E
                        0x00000000F40B916E
          KEY_RECORD                   0x00000000F609916E
                      0x00000000FD02916E
          KEY_PLAY                     0x00000000F708916E
          KEY_FASTFORWARD             0x00000000FC03916E
          KEY_1                      0x00000000FA05916E
          KEY_2                      0x00000000F906916E
          KEY_3                    0x00000000F807916E
          KEY_4                     0x00000000F30C916E
          KEY_5                     0x00000000F20D916E
          KEY_6                      0x00000000F10E916E
          KEY_7                    0x00000000F00F916E
          KEY_8                    0x00000000E31C916E
          KEY_9                     0x00000000E21D916E
          KEY_0                     0x00000000FB04916E
                         0x0000000047B8916E
                       0x0000000049B6916E
                               0x00000000C03F916E

#         These are the codes sent in Video mode by the remaining keys.
                        0x00000000EB14916E
                           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.
                           0x00000000F708FB04
                              0x00000000F40BFB04
          TV_Program_Up            0x00000000FF00FB04	# also Up
          TV_Program_Down          0x00000000FE01FB04	# also Down
                       0x00000000FD02FB04	# also Right
                     0x00000000FC03FB04	# also Left
      end codes

end remote

