#include "CmdSerial.h"

CmdSerial cmd;
int testInt = 0;

void setup() {
  Serial.begin(9600);
  Serial.println("Type  `help` and hit Enter in Terminal to get list of available commands...");
}



void loop() {
  //
  // Listen for income commands.
  cmd.listen();


  //
  // Example how to change int from Serial input.
  if (cmd.set(F("test"), testInt) ) {
    //
    // The if is true when value is set.
    Serial.println(F("Test is set in the sketch!"));
  }

  //
  // Example how to check what is the value of testInt.
  if (cmd.show(F("test"),F("This command is just for test"))) {
    cmd.print(F("Test value:"), testInt);
  }

  cmd.set(F("foo"),testInt,F("Some help block for `foo` "));

  if(cmd.show(F("foo"),F("This is foo command just for test"))){

  }


}
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5