#
# this config file was automatically generated
# using lirc-0.8.0(serial) on Thu Apr  5 22:53:52 2007
#
# contributed by fiji|limey.net
#
# brand:                       Sony
# model no. of remote control: RM-Y118
# devices being controlled by this remote: Sony TV, various VCRs and Cable Boxes
#
# Note: http://www.remotecodelist.com/remotes/rm-y119.html has info on
# programming codes
# I used Sony Beta VCR code (hold down code set & press 0, 1, enter)
# And Scientific Atlanta Cable box code (code set & 6, 7, enter)

begin remote

  name  Sony_RM-Y118
  bits           12
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2400   600
  one          1200   600
  zero          600   600
  gap          45000
  min_repeat      2
  toggle_bit      0

  frequency    40000
  duty_cycle   33

      begin codes
# TV Block
          muting                   0x290
          sleep                    0x6D0
          power                    0xA90
          tv/video                 0xA50
          tv                       0x550
# Cable power is only enabled in cable box mode

# Channel Block (These are changed by cable box mode
# see below)
          1                        0x010
          2                        0x810
          3                        0x410
          4                        0xC10
          5                        0x210
          6                        0xA10
          7                        0x610
          8                        0xE10
          9                        0x110
          0                        0x910
          enter                    0xD10
          jump                     0xDD0
          vol+                     0x490
          vol-                     0xC90
          ch+                      0x090
          ch-                      0x890
# Part of the channel block, but not changed
          display                  0x5D0
          ch_guide                 0x710

# Menu Block
          reset                    0x690
          menu+                    0x2F0
          menu-                    0xAF0
          menu                     0x070
          return                   0xA70

# PIP Block
          position                 0x7B0
          pip+                     0x1B0
          pip-                     0x9B0
          swap                     0xFB0
          pip                      0xDB0
          tv_video                 0x5B0
          freeze                   0x3B0
# audio is funky... see below

# VCR Block, these are Sony Beta (code 01, see above)
          vcr_ch+                  0x088
          vcr_ch-                  0x888
          vid_power                0xA88
          stop                     0x188
          pause                    0x988
          rew                      0xD88
          play                     0x588
          ffwd                     0x388
          rec                      0xB88
          tv/vtr                   0x548
      end codes

end remote

# This remote is odd... the non-programmable audio button sends 15
# bits vs. the 12 that all of the other non-programmable buttons send.
# So, I had to make a new section for it...
begin remote
  name  Sony_RM-Y118_audio
  bits           15
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2400   600
  one          1200   600
  zero          600   600
  gap          45000
  min_repeat      2
  toggle_bit      0

  frequency    40000
  duty_cycle   33

      begin codes
# The PIP audio select button
          audio                    0x1F25
      end codes

end remote

# The following section is for the buttons that change when the cable
# box position is selected.  I used Scientific Atlanta codes (code set
# + 6, 7, enter)
begin remote
  name  Sony_RM-Y118_cable_pos
  bits           22
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       3397  3372
  one           827  2557
  zero          827   855
  ptrail        827
  gap          101386
  toggle_bit      0

  frequency    56000

      begin codes
# Channel Block
          cable_power              0x367131
          1                        0x36113D
          2                        0x37111D
          3                        0x36912D
          4                        0x37910D
          5                        0x365135
          6                        0x375115
          7                        0x36D125
          8                        0x37D105
          9                        0x363139
          0                        0x373119
          enter                    0x36B129
          jump                     0x37F101
          ch+                      0x377111
          ch-                      0x36F121
      end codes
end remote
