Skip to content | Skip to navigation
Powered by RSPowered by RSPowered by RS

i want to use serial scanf function for the pic32MX.how can i use it?

jishang

India

i want to take the input from the teminal from 0 to 360 decimal no. and according to it the further program is proccesing.can any one know how to take the decimal no 0-360 from the terminal for  pic32mx serial communiction..

Replies

akaro

Germany

17 weeks ago

try this

 Processing functions.

translate()
scale()
rotateX()
rotateY()
rotateZ()

jishang

India

17 weeks ago

Thanking you for reply me.

but i can't get you...

My program in c is:

int main()

{

int angel=0;

printf("enter the no between o to 360:");

scanf("%d",&angel);

}

i want to do this thing through PC terminal through serial communication....

can you help me?

akaro

Germany

17 weeks ago

 the syntax looks well like  /* scanf example */
#include <stdio.h>

int main ()
{

int angel=0;

printf ("enter the no between o to 360: ");
scanf ("%d",&angel);

printf ("You have entered %#d (%d).\n",angel,angel);

return 0;
}   #whats the special problem

jishang

India

17 weeks ago

but i am serching for the printf and scanf function for serial communication.....i want to do this 2 this through Serial.

Serial.printf(),Serial.println(),functions are given.but not equivalent function is for the Scanf....like Serial.scanf()....

akaro

Germany

17 weeks ago

maybe this will be helpfull

 

 

http://www.easysw.com/~mike/serial/serial.html#2_5_1