You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2018. It is now read-only.
// Set the value of a pin
if ((line[0] == 'A') && (line[1] == 'V')) {
String pin = "";
pin.concat(line[2]);
pin.concat(line[3]);
String value = "";
value.concat(line[4]);
value.concat(line[5]);
value.concat(line[6]);
analogWrite(pin.toInt(), value.toInt());
}
Should be modified to be similar to all the other commands interpretation. For example:
if (!strcasecmp(cmd, "AV")) {
...
analogWrite(pin, value);
}
Just because string.concat(line[4]).concat(line[5])... is ugly
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Line 147→157:
Should be modified to be similar to all the other commands interpretation. For example:
Just because
string.concat(line[4]).concat(line[5])...
is uglyThe text was updated successfully, but these errors were encountered: