Configuration

All parameters are optional. They all have a defined default value.

The serial configuration is stored in the file "serial.xt".

Parameter name
 Description
 type
 The output device. Supported values are; uart, spi, i2c (default=uart)

UART
Parameter name
 Description
 uart_baud default=115200
 uart_bits Valid values are: 5,6,7,8 (default=8)
 uart_parity Valid values are: none, odd, even (default=none)
 uart_stopbits Valid values are: 1,2 (default=1)

SPI
Parameter name
 Description
 spi_speed_hz SPI speed in Hz (default=1000000 [1Mhz])
 spi_mode SPI mode. Valid values are: 0,1,2,3 (default=0)

I2C
Parameter name
 Description
 i2c_address The I2C device address. Address is given in hex. (default=30)
 i2c_speed_mode The I2C speed.Valid values are: standard (100kHz), fast (400kHz). (default=fast)


Example:
#serial.txt
#type=uart
# UART #
#uart_baud=115200
#uart_bits=8
#uart_parity=none
#uart_stopbits=1
# SPI #
#spi_speed_hz=1000000
#spi_mode=0
# I2C #
#i2c_address=30
#i2c_speed_mode=fast

Art-Net UART SPI I2C UI

Comments