Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
printf("AT\r\n"); //make sure carriage return is used..
int i=0;
int j=0;
void main(){
const unsigned char command1[3]="AT";
const unsigned char dial[15]="ATD0716530115;";
TRISB=0x00;
Usart_Init(9600);
PORTB=0x01;
Delay_ms(2000);
while(1){
PORTB=0x00;
for(i=0;i<3;i++)
{
if(command1[i]=='\0') break;
Usart_Write(command1[i]);
Delay_ms(100);
}
Usart_Write(0x0D);
Delay_ms(5000);
for(j=0;j<15;j++)
{
Usart_Write(dial[j]);
Delay_ms(100);
}
Usart_Write(0x0D);
PORTB=0x01;
Delay_ms(1000);
}
}