Wednesday, May 13, 2009

rOBOt AYaM


hmmm.. ape la susah sgt nak gerakkan kaki ayam ni...fenin..fenin..baru kita sedar betapa sempurnanya kaki kita diciptakan..subhanallah..


#define BUTTON1 portb.f7
#define button2 portb.f1
#define button3 portb.f2
#define button4 portb.f3
#define sensor1 portb.f4


void Forward();
void Backward();
void stop();
void main()
{
//setting port d0 and port d1 as output port
trisd.f0=0;trisd.f1=0;
trisd.f2=0;trisd.f3=0;
trisb.f0=1;//declare portb0 as an input port
trisb.f1=1;
trisb.f2=1;
trisb.f3=1;
trisb.f7=1;
portb.f0=1;


$%&*93)(%&&&&&#%*()@)####@@$#!!??

No comments: