<?PHP
//Phzapper v0.1

// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
// $Id: index.php/index.php4.php/index.php5.php/etc ,v 2.6 17-02-2006 20:37 precision Exp $

//This is made for the Trust Wireless Power System, based on a PT2262 chip (transmitter).
//Made by Roel J / KingOfDos - http://www.kingofdos.com
?>
#
# this config file was automatically generated
# using Phzapper Config Creator 0.1

# The base of this config where generated with
# WinLIRC 0.6.5 (LIRC 0.6.1pre3) on Fri Feb 17 16:10:35 2006
#
# contributed by Roel J / KingOfDos
#     http://zapper.kingofdos.com (soon) - Wireless Power DB
#     http://www.kingofdos.com
#
# brand:             Trust
# model:             Wireless Power System
# supported devices: Based on PT2262 radio coder chip
#

begin remote

  name  Trust(PT2262)
  bits            24
  flags SPACE_ENC
  eps            25
  aeps          100

  one           323   974
  zero          979   318
  ptrail        323
  gap          10037
  toggle_bit      0


      begin codes
<?PHP
$data_huis_array 
= array(
    
'A'=>'FF','B'=>'BF','C'=>'EF','D'=>'AF','E'=>'FB','F'=>'BB','G'=>'EB','H'=>'AB',
    
'I'=>'FE','J'=>'BE','K'=>'EE','L'=>'AE','M'=>'FA','N'=>'BA','O'=>'EA','P'=>'AA'
);
$data_channel_array = array(
    
'A1'=>'FF','A2'=>'BF','A3'=>'EF','A4'=>'AF','B1'=>'FB','B2'=>'BB','B3'=>'EB','B4'=>'AB',
    
'C1'=>'FE','C2'=>'BE','C3'=>'EE','C4'=>'AE','D1'=>'FA','D2'=>'BA','D3'=>'EA','D4'=>'AA'
);
$data_on 'EA';
$data_off 'EB';

foreach(
$data_huis_array as $data_huis_key => $data_huis_val) {
    foreach(
$data_channel_array as $data_channel_key => $data_channel_val) {
        echo 
'          '.$data_huis_key.$data_channel_key.'1                     0x0000000000'.$data_huis_val.$data_channel_val.$data_on."\r\n";
        echo 
'          '.$data_huis_key.$data_channel_key.'2                     0x0000000000'.$data_huis_val.$data_channel_val.$data_off."\r\n";
    }
}
?>
      end codes

end remote