- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / serial / real_hardware / serial_arduino_test.ino
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <Arduino.h>
6
7 // This Arduino sketch is used for manual testing with the browser test
8 // SerialApiTest.SerialExtension. We have tested with Arduino IDE 1.0.1.
9
10 void setup() {
11   Serial.begin(57600);
12 }
13
14 void loop() {
15   if (Serial.available() > 0)
16     Serial.print((char)Serial.read());
17 }