essaie ceci avec la version 1679 (flash les arduinos)
Arduino = Runtime.createAndStart("Arduino","Arduino")
Arduino.connect("com3")
from org.myrobotlab.service import Servo
servo = Runtime.create("servo","Servo")
servo.setMinMax(20,160)
servo = Runtime.start("servo","Servo")
servo.attach(Arduino, 13, 90, 5)
le paramettre ajouté a servo.attach est pour la vitesse angulaire, exprimé en degré/sec
-
This reply was modified 8 years ago by Christian.