I have attached an LED on portD4, and I want it on if D3 is 1. So to test this, I made to setup in the attached image. The code is the following:
Code: Select all
void main() {
TRISD = 0b00001000;
LATD.F0 = 1;
while(1) {
LATD.F4 = LATD.F3;
}
}
Can someone help clarify this?
Thanks