// generated by mBlock5 for <your product>
// codes make you happy
#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>
#include <Servo.h>
float vv = 0;
Servo servo_9;
void _delay(float seconds) {
long endTime = millis() + seconds * 1000;
while(millis() < endTime) _loop();
}
void setup() {
pinMode(A0+0,INPUT);
servo_9.attach(9);
pinMode(A0+1,INPUT);
vv = 0;
while(1) {
if(analogRead(A0+0) > 0){
vv += 1;
servo_9.write(vv);
}
if(analogRead(A0+1) > 0){
vv += -1;
servo_9.write(vv);
}
_loop();
}
}
void _loop() {
}
void loop() {
_loop();
}