Skip to content

Instantly share code, notes, and snippets.

@DDR0
Created August 24, 2019 00:57
Show Gist options
  • Save DDR0/d29d0798988c7a070194e9ef032b4a1e to your computer and use it in GitHub Desktop.
Save DDR0/d29d0798988c7a070194e9ef032b4a1e to your computer and use it in GitHub Desktop.
cam-json --control set - << EOF
{"ioMapping": {"combAnd": {"debounce": 0, "invert": 0, "source": "alwaysHigh"},
"combOr1": {"debounce": 1, "invert": 0, "source": "io1"},
"combOr2": {"debounce": 1, "invert": 0, "source": "io3"},
"combOr3": {"debounce": 0, "invert": 0, "source": "none"},
"combXOr": {"debounce": 0, "invert": 0, "source": "none"},
"delay": {"debounce": 0,
"delayTime": 0,
"invert": 0,
"source": "toggle"},
"gate": {"debounce": 0, "invert": 0, "source": "none"},
"io1": {"debounce": 0,
"driveStrength": 2,
"invert": 0,
"source": "none"},
"io1In": {"threshold": 2.502708},
"io2": {"debounce": 1,
"driveStrength": 0,
"invert": 0,
"source": "delay"},
"io2In": {"threshold": 2.502708},
"shutter": {"debounce": 0,
"invert": 0,
"shutterTriggersFrame": 0,
"source": "none"},
"start": {"debounce": 0, "invert": 0, "source": "toggle"},
"stop": {"debounce": 0, "invert": 1, "source": "delay"},
"toggleClear": {"debounce": 0, "invert": 0, "source": "alwaysHigh"},
"toggleFlip": {"debounce": 0, "invert": 0, "source": "comb"},
"toggleSet": {"debounce": 0, "invert": 0, "source": "none"},
"trigger": {"debounce": 0, "invert": 0, "source": "none"}}}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment