From b74448509a44bc2be9a006827ede79be883efbd4 Mon Sep 17 00:00:00 2001
From: Stanley Huang <stanleyhuangyc@gmail.com>
Date: Thu, 27 Jun 2013 12:10:32 +0800
Subject: move the OBD example sketch

---
 libraries/OBD/examples/rpm_led/rpm_led.ino | 31 ++++++++++++++++++++++++++++++
 samples/rpm_led/rpm_led.ino                | 31 ------------------------------
 2 files changed, 31 insertions(+), 31 deletions(-)
 create mode 100644 libraries/OBD/examples/rpm_led/rpm_led.ino
 delete mode 100644 samples/rpm_led/rpm_led.ino

diff --git a/libraries/OBD/examples/rpm_led/rpm_led.ino b/libraries/OBD/examples/rpm_led/rpm_led.ino
new file mode 100644
index 0000000..c641736
--- /dev/null
+++ b/libraries/OBD/examples/rpm_led/rpm_led.ino
@@ -0,0 +1,31 @@
+/*************************************************************************
+* Sample sketch based on OBD-II library for Arduino
+* Distributed under GPL v2.0
+* Copyright (c) 2012-2013 Stanley Huang <stanleyhuangyc@gmail.com>
+* All rights reserved.
+*************************************************************************/
+
+#include <Arduino.h>
+#include "OBD.h"
+
+COBD obd;
+
+void setup()
+{
+  // we'll use the debug LED as output
+  pinMode(13, OUTPUT);  
+  // start serial communication at the adapter defined baudrate
+  OBDUART.begin(OBD_SERIAL_BAUDRATE);
+  // initiate OBD-II connection until success
+  while (!obd.Init());  
+}
+
+void loop()
+{
+  int value;
+  if (obd.ReadSensor(PID_RPM, value)) {
+    // RPM is read and stored in 'value'
+    // light on LED when RPM exceeds 5000
+    digitalWrite(13, value > 5000 ? HIGH : LOW);
+  }
+}
diff --git a/samples/rpm_led/rpm_led.ino b/samples/rpm_led/rpm_led.ino
deleted file mode 100644
index c641736..0000000
--- a/samples/rpm_led/rpm_led.ino
+++ /dev/null
@@ -1,31 +0,0 @@
-/*************************************************************************
-* Sample sketch based on OBD-II library for Arduino
-* Distributed under GPL v2.0
-* Copyright (c) 2012-2013 Stanley Huang <stanleyhuangyc@gmail.com>
-* All rights reserved.
-*************************************************************************/
-
-#include <Arduino.h>
-#include "OBD.h"
-
-COBD obd;
-
-void setup()
-{
-  // we'll use the debug LED as output
-  pinMode(13, OUTPUT);  
-  // start serial communication at the adapter defined baudrate
-  OBDUART.begin(OBD_SERIAL_BAUDRATE);
-  // initiate OBD-II connection until success
-  while (!obd.Init());  
-}
-
-void loop()
-{
-  int value;
-  if (obd.ReadSensor(PID_RPM, value)) {
-    // RPM is read and stored in 'value'
-    // light on LED when RPM exceeds 5000
-    digitalWrite(13, value > 5000 ? HIGH : LOW);
-  }
-}
-- 
cgit v1.2.3