og_connect

og_connect(device_name: str, sessions_directory: str, filename: str, imu_logging: bool = True) tuple[OptoSetting, OptoGrid, bool][source]

Create and connect an OptoGrid. Returns (OptoSetting(), og, connected). Designed to be called from a background thread so it doesn’t block the main loop.