#
# 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
          power                    0xA8B
          chan_up                  0x08B
          chan_down                0x88B
          up                       0xFAB
          down                     0x06B
          left                     0x46B
          right                    0x86B
          ok                       0x7AB
          menu                     0xF6B
          quit                     0xC6B
          info                     0xD4B
          guide                    0xD4B
          closed_caption           0xCEB
          prev_chan                0xD0B
          one                      0x00B
          two                      0x80B
          three                    0x40B
          four                     0xC0B
          five                     0x20B
          six                      0xA0B
          seven                    0x60B
          eight                    0xE0B
          nine                     0x10B
          zero                     0x90B
          enter                    0xD0B
          input                    0xCEB
          rew                      0xD8B
          play                     0x58B
          ff                       0x38B
          rec                      0xB8B
          stop                     0xC4B
          pause                    0x98B
      end codes

end remote


