Etch a sketch with encoders in C