fiy output analog read

This commit is contained in:
Shannon Sterz 2016-01-28 19:15:56 +01:00
parent 151f234ff2
commit 750f778d19

View file

@ -128,8 +128,9 @@ void analogR(int pin) {
if(pin == -1) { Serial.println("badpin"); return; } if(pin == -1) { Serial.println("badpin"); return; }
pinMode(pin, INPUT); pinMode(pin, INPUT);
int rval = analogRead(pin); int rval = analogRead(pin);
Serial.println(String(pin + "::" + rval)); Serial.print(pin);
Serial.print("::");
Serial.println(rval);
} }
void handleRCDecimal(uint8_t val[], int pin) { void handleRCDecimal(uint8_t val[], int pin) {