 /*  
 Example of how to access the pins of the arduino 
   
  The circuit: 
 * RX is digital pin 10 (connect to TX of other device)
 * TX is digital pin 11 (connect to RX of other device)
 
 Note:
 Not all pins on the Mega and Mega 2560 support change interrupts, 
 so only the following can be used for RX: 
 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
 
*/
#include <hmi.h>

SoftwareSerial mySerial(10, 11); // RX pin, TX pin



void setup() {
    
    Hmi.pinMode(2,INPUT);
    Hmi.pinMode(4,INPUT);
    Hmi.pinMode(8,OUTPUT);    
    Hmi.pinMode(13,OUTPUT);
  
    mySerial.begin(9600);  
  
  }
  
  
 void loop(){

    Hmi.softSerial(mySerial); 
  }

