int x; void main() { while(1) { printf("Press START\n"); while(!start_button()) {} while(stop_button()==0) { x=knob(); printf("knob is at %d\n", x); } } }