remove mad comment
This commit is contained in:
parent
b136b05365
commit
c36b549e57
|
@ -8,20 +8,16 @@ void setup() {
|
||||||
|
|
||||||
mySerial.begin(9600);
|
mySerial.begin(9600);
|
||||||
pinMode(blueLED, OUTPUT);
|
pinMode(blueLED, OUTPUT);
|
||||||
//pinMode(PB0, INPUT);
|
|
||||||
digitalWrite(blueLED, LOW);
|
digitalWrite(blueLED, LOW);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
||||||
|
|
||||||
v = mySerial.read();
|
v = mySerial.read();
|
||||||
if (v == '1')
|
if (v == '1')
|
||||||
digitalWrite(blueLED, HIGH);
|
digitalWrite(blueLED, HIGH);
|
||||||
if (v == '2')
|
if (v == '2')
|
||||||
digitalWrite(blueLED, LOW);
|
digitalWrite(blueLED, LOW);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,26 +1,13 @@
|
||||||
//#include <IRremote.h>
|
|
||||||
#include <SoftwareSerial.h>
|
#include <SoftwareSerial.h>
|
||||||
|
|
||||||
SoftwareSerial mySerial(NULL,7); // RX, TX
|
SoftwareSerial mySerial(NULL,7); // RX, TX
|
||||||
|
|
||||||
//#define IR_RECEIVE_PIN PB4
|
|
||||||
uint8_t redLED = PB1;
|
uint8_t redLED = PB1;
|
||||||
//uint8_t redLED = PB2;
|
|
||||||
/* uint8_t greenLED = PB0;
|
|
||||||
uint8_t fanPIN = PB3; */
|
|
||||||
void setup() {
|
|
||||||
|
|
||||||
|
void setup() {
|
||||||
mySerial.begin(9600);
|
mySerial.begin(9600);
|
||||||
pinMode(redLED, OUTPUT);
|
pinMode(redLED, OUTPUT);
|
||||||
//pinMode(PB2, OUTPUT);
|
|
||||||
/* pinMode(greenLED, OUTPUT); */
|
|
||||||
/* pinMode(redLED, OUTPUT); */
|
|
||||||
/* pinMode(fanPIN, OUTPUT); */
|
|
||||||
/* digitalWrite(fanPIN, LOW); */
|
|
||||||
digitalWrite(redLED, LOW);
|
digitalWrite(redLED, LOW);
|
||||||
/* digitalWrite(greenLED, LOW); */
|
|
||||||
/* digitalWrite(redLED, LOW); */
|
|
||||||
//IrReceiver.begin(IR_RECEIVE_PIN);//, ENABLE_LED_FEEDBACK);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user