Code Arduino
lundi 1 février 2016
Code Arduino : Servo-moteur
Servo-moteur
Code:
#include <Servo.h>
Servo myservo;
int potpin = 0;
int val; n
void setup()
{
myservo.attach(9);
}
void loop()
{
val = analogRead(potpin);
}
Aucun commentaire:
Enregistrer un commentaire
Article plus récent
Accueil
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire