Basis of an oscillscope sketch for arduino