Integrate ccd sampling into system loop

Success area: CCD result is identical to sampling in separate main (i.e.
case 8: without motor init and adc init)
Bugs : Return result for every two loops, 1 loop is blank
Simply ccd library codes