archieve: homework7 test3
This commit is contained in:
@@ -21,7 +21,7 @@ void test2()
|
||||
{
|
||||
for (i = 8; i > 0; i--) // @loop: display the heart shape on the led matrix
|
||||
{
|
||||
switch_138(i); // switch the 74HC138's address to i
|
||||
switch_138(i); // switch the 74HC138's address to i
|
||||
P2 = ~heart[i]; // display the heart shape on the led matrix
|
||||
delay_ms(1);
|
||||
P2 = 0xFF; // turn off the led matrix
|
||||
|
||||
Reference in New Issue
Block a user