# TroiCade config file for TROIA distributor
# version 1.0 date 2005-12-20
# Copyright (C) 2003-2006 Stefan Schuermans <1stein@schuermans.info>
# Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html



# general options

# verbose mode
# if enabled, every received datagram and data output to devices is reported
# if enabled, errors while sending data to devices will be reported
# enabling this option is a major impact on performance
#verbose=no
verbose=no

# prototype mode
# set to yes for PixelModule1 (i.e. Troia Prototype)
#prototype=no
prototype=no



# input-options
input

# listen
# IP and port to listen on
#listen=0.0.0.0:2323
listen=127.0.0.1:52010



# mapping-options
mapping

# gamma correction
# the mapping from grayscale values to PWM values is calculated based on this
gamma=1.8



# output-options
# every frame is output as UDP packets to <dev_cnt> destination devices (e.g. TROIA distibution devices)
# the data for a device consists of the data for <ser_cnt> serial ports at this device
# the data for a serial port consists of the data for <pix_cnt> pixels
# the data for a pixel is a byte with the brightness of this pixel
output

# bind
# IP and port to bind to
#bind=0.0.0.0:2342
bind=10.23.23.23:2342

# IP addresses of the devices
# the IP address of device <dev_no> is: ip_base + dev_no * ip_step
ip_base=10.23.42.0
ip_step=0.0.0.1

# destination port
# the UDP port the devices listen on
dest_port=2342

# number of devices
# e.g. the number of TROIA distrubution devices connected to the output LAN
#dev_cnt=32
dev_cnt=1

# number of serial ports per device
# e.g. the number of serial ports at each TROIA distribution device
#ser_cnt=32
ser_cnt=32

# number of pixels per serial port
# e.g. the number of pixels connected to each serial port
#pix_cnt=32
pix_cnt=32



# format-options
format

# format file
# contains the format of the display and the logical number of the pixels
# first line must be of format "<width> <height>"
#   e.g. "18 8"
# <height> lines with <widht> whitespace-separated pixel fields must follow
# pixel fields must have the format "<dev_no>-<ser_no>-<pixel_no>"
#   e.g. "0-5-23" for the 24th pixel at the 6th serial port of the first device
# pixel field may also be "-" if a pixel has to be ignored
#file=troia_dist.td_fmt
file=troicade.td_fmt
