HELP! Can I combine these codes shown below in adiosrv.pde?
if(dist==10)
digitalWrite(13,HIGH);
else if(dist == 40)
digitalWrite(13,LOW);
I've also taken a portion of the "adiosrv.pde" code shown below and I would like to know if I could remove the Serial.print's because my project is SCADA. I would display the data on MATLAB and on the same time I will save the data in excel through PLX DAQ. Please help me with this.
if (val>98 && val<167) {
pin=val-97; /* calculate pin */
agv=servo[pin].read(); /* read value */
Serial.println(agv);