Skip to content

Instantly share code, notes, and snippets.

@MightyPork
Created January 27, 2018 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MightyPork/dd20ee406dfc41750ff73c825afd4b01 to your computer and use it in GitHub Desktop.
Save MightyPork/dd20ee406dfc41750ff73c825afd4b01 to your computer and use it in GitHub Desktop.
gexconf.ini
## UNITS.INI
## GEX v0.0.1 on STM32F072-Discovery
## built Jan 27 2018 at 10:53:10
# Overwrite this file to change settings.
# Press the LOCK button to save them to Flash.
[UNITS]
# Create units by adding their names next to a type (e.g. PIN=A,B),
# remove the same way. Reload to update the unit sections below.
# Digital output
DO=
# Digital input with triggers
DI=trig
# Neopixel RGB LED strip
NEOPIXEL=npx
# I2C master
I2C=i2c
# SPI master
SPI=
# Serial port
USART=serial
[DI:trig@1]
# Port name
port=A
# Pins (comma separated, supports ranges)
pins=10
# Pins with pull-up
pull-up=10
# Pins with pull-down
pull-down=
# Trigger pins activated by rising/falling edge
trig-rise=
trig-fall=10
# Trigger pins auto-armed by default
auto-trigger=
# Triggers hold-off time (ms)
hold-off=200
[NEOPIXEL:npx@3]
# Data pin
pin=B5
# Number of pixels
pixels=4
[I2C:i2c@4]
# Peripheral number (I2Cx)
device=1
# Pin mappings (SCL,SDA)
# I2C1: (0) B6,B7 (1) B8,B9
# I2C2: (0) B10,B11 (1) B13,B14
remap=0
# Speed: 1-Standard, 2-Fast, 3-Fast+
speed=1
# Analog noise filter enable (Y,N)
analog-filter=Y
# Digital noise filter bandwidth (0-15)
digital-filter=0
[USART:serial@6]
# Peripheral number (UARTx 1-4)
device=3
# Pin mappings (TX,RX,CK,CTS,RTS/DE)
# USART1: (0) A9,A10,A8,A11,A12 (1) B6,B7,A8,A11,A12
# USART2: (0) A2,A3,A4,A0,A1 (1) A14,A15,A4,A0,A1
# USART3: (0) B10,B11,B12,B13,B14
# USART4: (0) A0,A1,C12,B7,A15 (1) C10,C11,C12,B7,A15
remap=0
# Baud rate in bps (eg. 9600, 115200)
baud-rate=115200
# Parity type (NONE, ODD, EVEN)
parity=NONE
# Number of stop bits (0.5, 1, 1.5, 2)
stop-bits=1
# Bit order (LSB or MSB first)
first-bit=LSB
# Word width (7,8,9) - including parity bit if used
word-width=8
# Enabled lines (RX,TX,RXTX)
direction=RXTX
# Hardware flow control (NONE, RTS, CTS, FULL)
hw-flow-control=NONE
# Generate serial clock (Y,N)
clock-output=N
# Output clock polarity: 0,1 (clock idle level)
cpol=0
# Output clock phase: 0,1 (active edge, 0-first, 1-second)
cpha=0
# Generate RS485 Driver Enable signal (Y,N) - uses RTS pin
de-output=N
# DE active level: 0,1
de-polarity=1
# DE assert time (0-31)
de-assert-time=8
# DE clear time (0-31)
de-clear-time=8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment