void main() {
trisd=0;
trisc=0xff;
while(1)
{
if(portc.f0==1)
portd.f0=1;
else if(portc.f1==1)
portd.f1=1;
else if(portc.f2==1)
portd.f2=1;
else if(portc.f3==1)
portd.f3=1;
else if(portc.f4==1)
portd.f4=1;
else if(portc.f5==1)
portd.f5=1;
else if(portc.f6==1)
portd.f6=1;
}
}
void main() {
trisd=0;
trisc=0xff;
while(1)
{
portd = portc ;
}
}
its actually a modification ofIt is not too clear what you intend.
I want to switch on an led array according to the input from the sensorsIt is not too clear what you intend.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?