This commit is contained in:
Loic Delattre 2023-04-28 15:38:05 +02:00
parent 3bfa687809
commit 3d5396d0cb
1 changed files with 8 additions and 2 deletions

View File

@ -1,9 +1,15 @@
int Fs = 20;
int clockFreq = pow(10, 6);
int mySensor = A0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
int timePeriod = 1/Fs;
}
void loop() {
// put your main code here, to run repeatedly:
myValue = analogRead(mySensor);
delay(timePeriod);
}