Hi Thanks for the reply, I should have mentioned that I am trying to get it to work with python, which seems to be a bit more complicated.
So far I could manage to initialize the rotary encoder and set the thresholds, but I am not sure, if they are set correctly and I have no idea of knowing how to check it.
If I try to access the two set thresholds as a state change condition
, I don't get any changes.
This is my code:
from pybpodapi.bpod import Bpod
from pybpodapi.state_machine import StateMachine
#from rotary_encoder import MyRotaryEncoder
from pybpod_rotaryencoder_module.module_api import RotaryEncoderModule
bpod = Bpod()
rotary_encoder.enable_thresholds([True, True, False, False, False, False, False, False])
#print("\n \n \n")
for trial in range(trials):
sma = StateMachine(bpod)
# sart state blink green two times
# detect rotary encoder movement left -> blink red light
Any idea where in the code my error is caused