faster update of the datas
This commit is contained in:
parent
5a295023c7
commit
f7db16548d
@ -4,7 +4,7 @@
|
|||||||
/* -------------------------------------------------- */
|
/* -------------------------------------------------- */
|
||||||
|
|
||||||
#define NBVAL 4
|
#define NBVAL 4
|
||||||
#define DELAI 10000
|
#define DELAI 1000
|
||||||
|
|
||||||
/* -------------------------------------------------- */
|
/* -------------------------------------------------- */
|
||||||
void setup() {
|
void setup() {
|
||||||
@ -19,7 +19,7 @@ void setup() {
|
|||||||
* range of our temperatures.
|
* range of our temperatures.
|
||||||
*/
|
*/
|
||||||
analogReference(INTERNAL1V1); // Pour Arduino Mega2560
|
analogReference(INTERNAL1V1); // Pour Arduino Mega2560
|
||||||
|
Serial.print("\n\n\n\n");
|
||||||
delay(1000);
|
delay(1000);
|
||||||
Serial.print("M running\n");
|
Serial.print("M running\n");
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ void updatevalues(short *ptr)
|
|||||||
for (pass=0; pass<NB_PASSE; pass++) {
|
for (pass=0; pass<NB_PASSE; pass++) {
|
||||||
for (foo=0; foo<NBVAL; foo++) {
|
for (foo=0; foo<NBVAL; foo++) {
|
||||||
ptr[foo] += analogRead(adc_pins[foo]);
|
ptr[foo] += analogRead(adc_pins[foo]);
|
||||||
delay(100);
|
delay(50);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user