Go Down

Topic: Slow response - how to improve . . ? (Read 2 times) previous topic - next topic

robtillaart

try to get the application right for 1 sensor first. Then increase it to multiple sensors and then use array's.

Also read the book Kerningham & RItchie C language 2nd edition. "Worth its weight in brains"
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

taz3m

hello,

I found that by using
Code: [Select]
#define moisture_input [] = {1,3,4,5}

whereby i was defining analog pin 1,pin 3, pin 4, pin 5  to be used to collect information from soil moisture probes.

Instead when i use

Code: [Select]

int moisture_input [] = {1,3,4,5};


It do compiles . .
tz
.....

AWOL

Quote
whereby i was defining analog pin 1,pin 3, pin 4, pin 5
No, you weren't. You were defining a strange macro.
Do the substitution, and you'll see why the compiler complained.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

taz3m


try to get the application right for 1 sensor first. Then increase it to multiple sensors and then use array's.


I already try the application for 1 sensor, it did work . . thats why i would like to extend to 4 now.

Anyway thanks for the reference book .

taz ..
tz
.....

taz3m


Do the substitution, and you'll see why the compiler complained.


Which thing do i need to substitute . . ??
tz
.....

Go Up