#4994
Christian
Participant

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 6 years, 2 months ago by Christian.