les affaires repartent
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
/* -------------------------------------------------- */
|
||||
|
||||
#define NBVAL 4
|
||||
#define DELAI 12000
|
||||
#define DELAI 2000
|
||||
|
||||
/* -------------------------------------------------- */
|
||||
void setup() {
|
||||
@@ -21,6 +21,7 @@ void setup() {
|
||||
|
||||
delay(1000);
|
||||
Serial.print("M running\n");
|
||||
|
||||
}
|
||||
/* -------------------------------------------------- */
|
||||
/* ================================================== */
|
||||
@@ -31,8 +32,10 @@ void updatevalues(short *ptr)
|
||||
int foo;
|
||||
digitalWrite(LED_BUILTIN, HIGH);
|
||||
for (foo=0; foo<NBVAL; foo++) {
|
||||
|
||||
ptr[foo] = analogRead(adc_pins[foo]);
|
||||
delay(200);
|
||||
// ptr[foo] = analogRead(A0);
|
||||
delay(100);
|
||||
}
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
}
|
||||
@@ -63,4 +66,3 @@ void loop() {
|
||||
}
|
||||
|
||||
/* -------------------------------------------------- */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user