first real run on the phytotron

This commit is contained in:
phyto
2019-03-28 12:04:40 +01:00
parent 17ec8dd47d
commit b47e467d21
5 changed files with 51 additions and 17 deletions

View File

@@ -4,7 +4,7 @@
/* -------------------------------------------------- */
#define NBVAL 4
#define DELAI 2000
#define DELAI 5000
/* -------------------------------------------------- */
void setup() {
@@ -32,9 +32,7 @@ void updatevalues(short *ptr)
int foo;
digitalWrite(LED_BUILTIN, HIGH);
for (foo=0; foo<NBVAL; foo++) {
ptr[foo] = analogRead(adc_pins[foo]);
// ptr[foo] = analogRead(A0);
delay(100);
}
digitalWrite(LED_BUILTIN, LOW);