Commit 37bbecc6 authored by Evan Raskob's avatar Evan Raskob

small fix

parent 2df169af
......@@ -87,6 +87,10 @@ void loop() {
int port = INVALID;
// Example:
// call (via serial from other app): /a,0 -- read port a0
// response: /a,0,345 -- analogue value of port A0
if (cmd == 'a')
{
// make sure to check we have valid data! There's no guarantee...
......@@ -113,7 +117,7 @@ void loop() {
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
if (a > 1)
if (a > 0)
digitalWrite(13,HIGH);
else
digitalWrite(13,LOW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment