function ledTest( portNumber, teamNumberHexString )
%TESTIT Opens the serial connection to the PIC and goes through LED values.
%   Displays each LED value, one second each.
% Example usage later in the lab:
%   testit(4, '50')
%   Note, the hex values are passed in as a string to allow for a-f values.

pic = openSerial(portNumber, teamNumberHexString );
teamNumber = hex2dec(teamNumberHexString);
%
%    put out the numbers 1-10 at one second intervals
%    this should light your LEDs in sequence
%
pause on;
for i=0:10
    number= i + teamNumber;
    fwrite(pic, number);
    fprintf('   Sending value %d\n', i);
    pause(1);
end
pause off

end
