add comments
This commit is contained in:
@@ -53,14 +53,14 @@ void wait( int ms )
|
|||||||
|
|
||||||
int main( void )
|
int main( void )
|
||||||
{
|
{
|
||||||
DDRA = 0xFF;
|
DDRA = 0xFF; // set PORTA to all output
|
||||||
|
|
||||||
|
|
||||||
while (1==1)
|
while (1==1)
|
||||||
{
|
{
|
||||||
// Set index to begin of pattern array
|
// Set index to begin of pattern array
|
||||||
int index = 0;
|
int index = 0;
|
||||||
// as long as delay has meaningful content
|
// loop through the array
|
||||||
for (int i = 0; i < sizeof(segments)/sizeof(segments[0]); i++)
|
for (int i = 0; i < sizeof(segments)/sizeof(segments[0]); i++)
|
||||||
{
|
{
|
||||||
// Write data to PORTA
|
// Write data to PORTA
|
||||||
@@ -71,6 +71,7 @@ int main( void )
|
|||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*we need to free the memory taken up by the array, otherwise it won't clear properly*/
|
/*we need to free the memory taken up by the array, otherwise it won't clear properly*/
|
||||||
free(segments);
|
free(segments);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user