finilized the bar graph code...problem was the mindflex was plugged into pin 13 and not gnd...