Code for the development of the smartscope