#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>
double angle_rad = PI/180.0;
double angle_deg = 180.0/PI;
void setup(){
pinMode(13,OUTPUT);
pinMode(12,OUTPUT);
pinMode(A0+0,INPUT);
}
void loop(){
digitalWrite(13,1);
digitalWrite(12,0);
_delay((0.1) + (((analogRead(A0+0)) * ((10) / (1024))) / (10)));
digitalWrite(13,0);
digitalWrite(12,1);
_delay((0.1) + (((analogRead(A0+0)) * ((10) / (1024))) / (10)));
_loop();
}
void _delay(float seconds){
long endTime = millis() + seconds * 1000;
while(millis() < endTime)_loop();
}
void _loop(){
}