Two Choice ---------- Wait for a choice between ports 1 and 2. Indicate the choice for 1 second with the chosen port LED at max intensity. .. image:: two_choice.svg :align: center .. tab-set:: .. tab-item:: Python .. literalinclude:: ../../../../examples/two_choice.py :language: python :start-at: from bpod_core. .. tab-item:: JSON .. code-block:: json { "states": { "WaitForChoice": { "transitions": { "Port1_High": "LightPort1", "Port2_High": "LightPort2" } }, "LightPort1": { "timer": 1.0, "transitions": { "Tup": ">exit" }, "actions": { "PWM1": 255 } }, "LightPort2": { "timer": 1.0, "transitions": { "Tup": ">exit" }, "actions": { "PWM2": 255 } } } } .. tab-item:: YAML .. code-block:: yaml states: WaitForChoice: transitions: Port1_High: LightPort1 Port2_High: LightPort2 LightPort1: timer: 1.0 transitions: Tup: '>exit' actions: PWM1: 255 LightPort2: timer: 1.0 transitions: Tup: '>exit' actions: PWM2: 255