#
# Brand:        Foxtel STU-120 Analogue Cable Set Top Box
# Manufacturer: Pace (apparently?)
# Model:        32 button dark grey remote
#
# The initial gap of 42000 caused problems when issuing double key presses, such as "irsend SEND_ONCE foxtel 1 1"
# to change to channel 11, so it was increased to 60000 which can issue that command quickly with both presses being
# received.
#
# Hint: To make the channel number disappear from the top left immediately after the channel change, issue an Exit key
# press as well, ie: "irsend SEND_ONCE foxtel 2 5 Exit"
#
# Each of the unknown codes correspond one of the following buttons: S1, S2, Audio, Func. However, since they don't
# appear to do anything when pressed from the remote, it was hard to work out which one was which :)
#

begin remote
  name          Foxtel_STU-120
  eps 30
  aeps 100
  frequency     38380
  zero          573  556
  one           573  1667
  header        8911 4481
  pre_data_bits 16
  pre_data      0x213C
  bits          16
  ptrail        573
  gap           60000

  begin codes
     0xD02F
     0xC837
     0x58A7
     0x7887
          0x9867
    KEY_OK       0xB847
        0x6897
         0xE817
    KEY_INFO     0x8877
    KEY_MENU     0x30CF
          0x609F
            0x48B7
            0xF00F
           0xB04F
           0x08F7
    KEY_VOLUMEDOWN     0x38C7
    KEY_VOLUMEUP     0x18E7
         0xA857
        0xF807
        0xD827
    KEY_1        0x40BF
    KEY_2        0xA05F
    KEY_3        0xE01F
    KEY_4        0x807F
    KEY_5        0x00FF
    KEY_6        0xC03F
    KEY_7        0x50AF
    KEY_8        0x906F
    KEY_9        0x10EF
    KEY_0        0x708F
    KEY_MUTE     0x28D7
    KEY_POWER    0x20DF
  end codes
end remote
