Commit 4ac12539 authored by Alisson Claudino's avatar Alisson Claudino

Adicionado algoritmo de amostragem constante

parent 2d973106
const int tensao = A0;
int sensorValue = 0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
while(millis()%20!=0)
{}
sensorValue = analogRead(tensao);
Serial.print("\nSensor_1 :");
Serial.print(sensorValue);
Serial.print(",");
Serial.print(millis());
delay(1);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment