]> Zhao Yanbai Git Server - acecode.git/commitdiff
arduino dir
authoracevest <zhaoyanbai@126.com>
Thu, 28 May 2015 07:58:32 +0000 (15:58 +0800)
committeracevest <zhaoyanbai@126.com>
Thu, 28 May 2015 07:58:32 +0000 (15:58 +0800)
arduino/Fm.ino [moved from arduino/fm/fm.ino with 100% similarity]
arduino/IR.Recv.ino [moved from arduino/rcv/rcv.ino with 100% similarity]
arduino/IR.Send.ino [moved from arduino/snd/snd.ino with 100% similarity]
arduino/InfraredReceiver.ino [moved from arduino/IR/InfraredReceiver/InfraredReceiver.ino with 100% similarity]
arduino/LightSensor/LightSensor.ino [deleted file]
arduino/Sensors.ino [moved from arduino/Sensors/Sensors.ino with 100% similarity]
arduino/Servo.ino [moved from arduino/l/sketch_oct18b/sketch_oct18b.ino with 100% similarity]
arduino/UltrasonicSensor.ino [moved from arduino/UltrasonicSensor/UltrasonicSensor.ino with 100% similarity]
arduino/l/sketch_oct18a/sketch_oct18a.ino [deleted file]
arduino/light/light.ino [deleted file]
bluetoothinit.ino [moved from arduino/bluetoothinit/bluetoothinit.ino with 100% similarity]

similarity index 100%
rename from arduino/fm/fm.ino
rename to arduino/Fm.ino
similarity index 100%
rename from arduino/rcv/rcv.ino
rename to arduino/IR.Recv.ino
similarity index 100%
rename from arduino/snd/snd.ino
rename to arduino/IR.Send.ino
diff --git a/arduino/LightSensor/LightSensor.ino b/arduino/LightSensor/LightSensor.ino
deleted file mode 100644 (file)
index aaa6446..0000000
+++ /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/l/sketch_oct18a/sketch_oct18a.ino b/arduino/l/sketch_oct18a/sketch_oct18a.ino
deleted file mode 100644 (file)
index ff669b7..0000000
+++ /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<cnt; ++i)
-  {
-    pinMode(LedPins[i], OUTPUT); 
-  }
-}
-
-static int curt = 0;
-
-void loop() {
-  int i;
-  for(i=0; i<cnt; ++i)
-  {
-    int ledPin = LedPins[i];
-    
-    if(i == curt)
-    {
-      digitalWrite(ledPin, LOW);
-    }
-    else
-    {
-      digitalWrite(ledPin, HIGH);
-    }
-  }
-  
-  curt = ++curt % cnt;
-  delay(200);
-}
-
diff --git a/arduino/light/light.ino b/arduino/light/light.ino
deleted file mode 100644 (file)
index 6bb045a..0000000
+++ /dev/null
@@ -1,43 +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
-  int tv = analogRead(1);  // Temperature
-  
-  delay(100);
-  
-  float temperature;
-  float resistance = (float)(1023-tv)*10000/tv;
-  temperature = 1/(log(resistance/10000)/3975+1/298.15) - 273.15;
-  if(cnt % 10 == 0)
-  {
-    Serial.print("Light Sensor Value: ");
-    Serial.println(lv);
-  
-    Serial.print("Temperature Sensor Value: ");
-    Serial.println(tv); 
-    
-    Serial.print("Temperature: ");
-    Serial.println(temperature); 
-  }
-  
-  if(lv < 400)
-  {
-    digitalWrite(ledPin, HIGH);
-  }
-  else
-  {
-    digitalWrite(ledPin, LOW);
-  }
-  
-}