#
# this config file was automatically generated
# using lirc-0.8.1-CVS-pvr150(udp) on Fri Apr  6 17:00:41 2007
#
# contributed by John Lofgren
#
# brand: Zenith
# model no. of remote control: ZN5015
# The ZN5015 is a universal remote.  This config file is setup using code 838 -
# one of the two listed Tivo remote codes.  After trying a few codes, this code
# worked with the most buttons on the remotes and gave few redundancies in the
# key codes.  Note the 
# devices being controlled by this remote: mythtv frontend/backend
#
# NOTES:
# The ZN5015 is a cheap universal remote.  This config file is set up using code
# 838 - one of the two listed Tivo remote codes.  After trying a few codes, this
# code worked with the most buttons on the remote and gave few redundancies in
# the key codes.  Note the following:
# -To set the remote code:
# 	1. Hold down CODE SEARCH for a couple seconds until the LED stays on.
# 	2. Press one of the four source device buttons: VCR, SAT, CBL, or DVD.
# 	   (Do not choose TV - this button can only be used for TV codes.)
# 	   Note, you can set a different code for each of the source buttons.
# 	3. Type in the three digit code (8, 3, 8).  The LED should turn off if
# 	   you were successful.
# -The SHIFT key is not very friendly.  It is a pain-in-the-you-know-what.  But,
# as they say, it is best to know thy enemy.  The SHIFT key is used to activate
# the green-colored functions on several keys
# When SHIFT is pressed once, the LED turns on.  Press it again to turn SHIFT
# off.  When SHIFT is on, the code for
# the green function of the button will be output.  When SHIFT is off, the
# code for the other function on the key will be sent.  For example, when you
# press the UP / CHAN+ key, if SHIFT is on, the code for UP will be sent.  If
# SHIFT is off, the code for CHAN+ will be sent.  Make sure SHIFT is off when
# pressing buttons without a green function.  These buttons may produce no code
# or a code for a different button while SHIFT is on.
# -The following keys control the remote itself and are not meant to output IR
# codes: TV, VCR, SAT, CBL, DVD, CODE SEARCH, SLEEP, SHIFT
# -The volume up, down, and mute keys do not work with code 838.
# -The GUIDE and INFO keys produce the same output with code 838.
# -The PREV CHAN/REPEAT and ENT(er) keys produce the same output with code 838.
# -The CC (closed caption)/SUBTITLE and INPUT/TV-VCR keys produce the same
# output with code 838.
#


begin remote

  name  Zenith_ZN5015_CODE838
  bits           12
  flags SPACE_ENC
  eps            30
  aeps          100

  header       2478   503
  one          1278   501
  zero          666   501
  post_data_bits  8
  post_data      0x59
  gap          13260
  min_repeat      2
  toggle_bit      0


      begin codes
          KEY_POWER                    0xA8B
                            0x08B
                          0x88B
          KEY_UP                       0xFAB
          KEY_DOWN                     0x06B
          KEY_LEFT                     0x46B
          KEY_RIGHT                    0x86B
          KEY_OK                       0x7AB
          KEY_MENU                     0xF6B
                               0xC6B
          KEY_INFO                     0xD4B
          guide                    0xD4B
                     0xCEB
          prev_chan                0xD0B
          KEY_1                      0x00B
          KEY_2                      0x80B
          KEY_3                    0x40B
          KEY_4                     0xC0B
          KEY_5                     0x20B
          KEY_6                      0xA0B
          KEY_7                    0x60B
          KEY_8                    0xE0B
          KEY_9                     0x10B
          KEY_0                     0x90B
          KEY_ENTER                    0xD0B
                              0xCEB
          KEY_REWIND                      0xD8B
          KEY_PLAY                     0x58B
          KEY_FASTFORWARD                       0x38B
          KEY_RECORD                      0xB8B
          KEY_STOP                     0xC4B
          KEY_PAUSE                    0x98B
      end codes

end remote


