I want to send data to my Arduino board using Visual Studio and C.
I specifically need to use C since I am using ARToolKit to get markers and sending the data accordingly.
I was trying the code
#include<stdio.h>
#include<stdlib.h>
void main()
{
system( "MODE COM9: BAUD=9600 PARITY=n DATA=8 STOP=1" ) ;
FILE port = fopen( "COM9:", "wb" ) ;
printf("hello");
fprintf( port, "s" ) ;
fclose( port ) ;
}
but it is not getting compiled.
I just need to send data.
I understood from your post that you need to send data using visual studio not to write a program to flash or any other stuff. Here is an example i made for you on my machine it works sending the text test.