Tag: 串行通信

使用Visual Studio 2008和C进行串行通信(适用于Arduino)

我想使用Visual Studio和C将数据发送到我的Arduino板。我特别需要使用C,因为我使用ARToolKit获取标记并相应地发送数据。 我正在尝试代码 #include #include 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 ) ; } 但它没有得到编译。 我只需要发送数据。