Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i=0; i<6; i=i+2)
- {
- //printf("%x ",data[i]);
- char buff[5];
- axis = sprintf(buff,"%d",data[i+1] << 8 | data[i]);
- if(i==0){
- printf("x: ");
- }else if(i==2){
- printf(" | y: ");
- }else{
- printf(" | z: ");
- }
- printf("%d", buff[5]);
- for(int j=0;j<5-axis;j++)
- printf(" ");
- /*if(i<4){
- printf(" | ");
- }*/
- }
- printf("%c",12);
Add Comment
Please, Sign In to add comment