// For ATtiny84 Turn on LED and Analog Read // for SoftwareSerial you can use external clock since physical pins 2 and 3 are free. #include "SoftwareSerial.h" const int LED = 7; const int BUTTON = 3; const int Rx = 0; const int Tx = 1; SoftwareSerial mySerial(Rx, Tx); int val = 0; // val from Max void setup(){ pinMode(LED, OUTPUT); pinMode(Rx, INPUT); pinMode(Tx, OUTPUT); mySerial.begin(115200); } void loop() { //mySerial.read; // read MAX if (mySerial.available()>0) { val = mySerial.read(); if (val == 1) { digitalWrite(LED,HIGH); } else { digitalWrite(LED, LOW); } } }