ardulink

Command Arduino Uno using Ardulink

廉价感情. 提交于 2019-12-11 01:33:54
问题 I am trying to command my Arduino Uno using Ardulink library in my JAVA Application but without success I don't know what have I missed, here is my code: Link link = Link.getDefaultInstance(); boolean connected = link.connect("COM6", 57600); Thread.sleep(2000); MessageInfo msg=link.sendPowerPinSwitch(17, IProtocol.POWER_HIGH); Thread.sleep(5000); link.disconnect(); In arduino example, it uses this functions of the Servo class to command: attach(port);pinMode(A3,OUTPUT); digitalWrite(A3, HIGH)