arduino
This commit is contained in:
parent
3bfa687809
commit
3d5396d0cb
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue