update opto, add test sketch