Arduino用作usb转ttl串口调试工具直接上代码,上传到arduino即可。TX接TX, DX接DXvoid setup() { // put your setup code here, to run once:pinMode(0,INPUT_PULLUP); pinMode(1,INPUT_PULLUP);}void loop() { // put your main code here, to run repeatedly:}... ...