Permalink
Browse files

Inicializando las variale de joystick¨

  • Loading branch information...
1 parent 13d3b96 commit 3dc1303e82d11e774e37e0693db4cbd682131751 @chepecarlos committed Apr 28, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 BrasoAndruino.pde
View
@@ -1,7 +1,15 @@
#include <Servo.h>
+int PoxX = 90; //Variable de la posicion orizontal del joystick
+int VecX = 0; //Variale de hacia donde esta inclinado
+
void setup() {
-
+ Serial.begin(9600);//Inicar el puerto serial
+
+ for( int i = 2; i <= 6 ; i++){
+ pinMode( i , INPUT);
+ digitalWrite( i, HIGH);
+ }
}
void loop() {

0 comments on commit 3dc1303

Please sign in to comment.