SPC  Version 0.9.5
 All Files Functions Groups Pages
ex_arrays.spc

This is an example of how to use the Wait and printf functions.

task main()
{
int i;
int myVector[10];
// take 10 samples spaced every 1 mS
for (i=0; i<10; i++)
{
myVector[i] = ADChannel0;
}
// print with comma separators
for (i=0; i<10; i++)
{
int val = myVector[i]; // bug!!!!!
printf("%d", val);
printf(",");
}
}