void setup() {
// put your setup code here, to run once:
pinMode(A6, INPUT);
pinMode(A7, INPUT);
pinMode(4, INPUT_PULLUP);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int poteV = analogRead(A7);
int poteH = analogRead(A6);
int bot = digitalRead(4);
int mapeo1 = poteV/4;
analogWrite(9, mapeo1);
int mapeo2 = poteH/4;
analogWrite(10, mapeo2);
/*
Serial.print(mapeo1);
Serial.print(",");
Serial.print(mapeo2);
*/
delay(200);
}