One exaple here: https://gitlab.cern.ch/bat/optoboard_felix/-/blob/master/src/optoboard_felix/driver/Optoboard.py?ref_type=heads#L444