mragab47
Newbie level 4
i connect switch at RB1 and i need to send data to pc when switch off
and that my code
void main(){
portb.rb1=0;
trisb.rb1=1;
uart1_Init(9600);
do{
if (portb.rb1==1){
uart1_write("7");}
}while(1);
}
and i sure that all connections are true
i work on MikroC and Proteus
and that my code
void main(){
portb.rb1=0;
trisb.rb1=1;
uart1_Init(9600);
do{
if (portb.rb1==1){
uart1_write("7");}
}while(1);
}
and i sure that all connections are true
i work on MikroC and Proteus