Hi,
I have the code below and am receiving an “expected initializer before TestOne” error message. Why might this be?
Thanks
Here is my code:
void setup() {
Serial.begin(9600);
pinMode(A2, INPUT);
}
float IRVal = analogRead(A2);
float IROne[100];
boolean result;
void boolean testOne (float IROne) {
for (int i = 0; i < IROne.length - 1; i++) {
IRVal = IROne*;*
_ if (IROne > IROne[i - 1]) {_
* result = true;*
* Serial.println(result);*
* }*
* }*
* result = false;*
* Serial.println(result);*
}