Getting Started

(lily) #1

Chapter 4: C Types, Operators, and Expressions


= 0;

delay count
= 5000 + (increase * 500);

hose eyes
128; i = i*2)

larity) PORTD = ~i;
PORTD = i;
y_loop_2(delay_count);

28; i > 1; i -= i/2)

PORTD = ~i;
RTD = i;
_delay_loop_2(delay_count);

ory and change TARGET = CylonEyes then
, load, and play.

}
else polarity

// set the
delay_count

// scroll t
for(int i = 1; i <=
{
if(po
else
_dela
}

for(int i = 1
{
if(polarity)
else PO

}
}
}

Open the makefile in the Blinky direct
save it to the CylonEyes directory. Compile


Figure 15: Bit 7 high Figure 16: Bit 7 low.........................................

Free download pdf