diff --git a/Attiny_84_Slave.ino b/Attiny_84_Slave.ino index 0eff419..94ae704 100644 --- a/Attiny_84_Slave.ino +++ b/Attiny_84_Slave.ino @@ -8,20 +8,16 @@ void setup() { mySerial.begin(9600); pinMode(blueLED, OUTPUT); - //pinMode(PB0, INPUT); digitalWrite(blueLED, LOW); } void loop() { - v = mySerial.read(); if (v == '1') digitalWrite(blueLED, HIGH); if (v == '2') digitalWrite(blueLED, LOW); - - -} \ No newline at end of file +} diff --git a/Attiny_85_Master.ino b/Attiny_85_Master.ino index 2467686..1c18e9c 100644 --- a/Attiny_85_Master.ino +++ b/Attiny_85_Master.ino @@ -1,26 +1,13 @@ -//#include #include SoftwareSerial mySerial(NULL,7); // RX, TX -//#define IR_RECEIVE_PIN PB4 uint8_t redLED = PB1; -//uint8_t redLED = PB2; -/* uint8_t greenLED = PB0; -uint8_t fanPIN = PB3; */ -void setup() { +void setup() { mySerial.begin(9600); pinMode(redLED, OUTPUT); - //pinMode(PB2, OUTPUT); -/* pinMode(greenLED, OUTPUT); */ -/* pinMode(redLED, OUTPUT); */ -/* pinMode(fanPIN, OUTPUT); */ -/* digitalWrite(fanPIN, LOW); */ digitalWrite(redLED, LOW); -/* digitalWrite(greenLED, LOW); */ -/* digitalWrite(redLED, LOW); */ - //IrReceiver.begin(IR_RECEIVE_PIN);//, ENABLE_LED_FEEDBACK); } void loop() {