added code to clear terminal screen, changed fixed control value to 40 to test DAC