From: acevest Date: Thu, 28 May 2015 07:58:32 +0000 (+0800) Subject: arduino dir X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=b9137140c31c7977cfd2368542a0800b96640a25;p=acecode.git arduino dir --- diff --git a/arduino/fm/fm.ino b/arduino/Fm.ino similarity index 100% rename from arduino/fm/fm.ino rename to arduino/Fm.ino diff --git a/arduino/rcv/rcv.ino b/arduino/IR.Recv.ino similarity index 100% rename from arduino/rcv/rcv.ino rename to arduino/IR.Recv.ino diff --git a/arduino/snd/snd.ino b/arduino/IR.Send.ino similarity index 100% rename from arduino/snd/snd.ino rename to arduino/IR.Send.ino diff --git a/arduino/IR/InfraredReceiver/InfraredReceiver.ino b/arduino/InfraredReceiver.ino similarity index 100% rename from arduino/IR/InfraredReceiver/InfraredReceiver.ino rename to arduino/InfraredReceiver.ino diff --git a/arduino/LightSensor/LightSensor.ino b/arduino/LightSensor/LightSensor.ino deleted file mode 100644 index aaa6446..0000000 --- a/arduino/LightSensor/LightSensor.ino +++ /dev/null @@ -1,31 +0,0 @@ -const int ledPin = 12; -int cnt = 0; - -void setup() { - Serial.begin(9600); - pinMode(ledPin, OUTPUT); -} - -void loop() { - cnt ++; - - int lv = analogRead(0); // Light - - delay(1); - - if(cnt % 10 == 0) - { - Serial.print("Light Sensor Value: "); - Serial.println(lv); - } - - if(lv < 400) - { - digitalWrite(ledPin, HIGH); - } - else - { - digitalWrite(ledPin, LOW); - } - -} diff --git a/arduino/Sensors/Sensors.ino b/arduino/Sensors.ino similarity index 100% rename from arduino/Sensors/Sensors.ino rename to arduino/Sensors.ino diff --git a/arduino/l/sketch_oct18b/sketch_oct18b.ino b/arduino/Servo.ino similarity index 100% rename from arduino/l/sketch_oct18b/sketch_oct18b.ino rename to arduino/Servo.ino diff --git a/arduino/UltrasonicSensor/UltrasonicSensor.ino b/arduino/UltrasonicSensor.ino similarity index 100% rename from arduino/UltrasonicSensor/UltrasonicSensor.ino rename to arduino/UltrasonicSensor.ino diff --git a/arduino/l/sketch_oct18a/sketch_oct18a.ino b/arduino/l/sketch_oct18a/sketch_oct18a.ino deleted file mode 100644 index ff669b7..0000000 --- a/arduino/l/sketch_oct18a/sketch_oct18a.ino +++ /dev/null @@ -1,32 +0,0 @@ -const int LedPins[] = {8, 9, 10, 11, 12}; -const int cnt = 5; -void setup() { - int i; - for(i=0; i