Index: platforms/stm/disco_fletch/src/test.dart |
diff --git a/platforms/stm/disco_fletch/src/test.dart b/platforms/stm/disco_fletch/src/test.dart |
deleted file mode 100644 |
index fa34e307e921cc58724e27cf78771673a72daef2..0000000000000000000000000000000000000000 |
--- a/platforms/stm/disco_fletch/src/test.dart |
+++ /dev/null |
@@ -1,34 +0,0 @@ |
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE.md file. |
- |
-import 'dart:typed_data'; |
- |
-import 'package:stm32f746g_disco/uart.dart'; |
-import 'package:stm32f746g_disco/stm32f746g_disco.dart'; |
- |
-main() { |
- const int CR = 13; |
- const int LF = 10; |
- |
- STM32F746GDiscovery disco = new STM32F746GDiscovery(); |
- Uart uart = disco.uart; |
- |
- uart.writeString("\rWelcome to Dart UART echo!\r\n"); |
- uart.writeString("--------------------------\r\n"); |
- while (true) { |
- var data = new Uint8List.view(uart.readNext()); |
- // Map CR to CR+LF for nicer console output. |
- if (data.indexOf(CR) != -1) { |
- for (int i = 0; i < data.length; i++) { |
- var byte = data[i]; |
- uart.writeByte(byte); |
- if (byte == CR) { |
- uart.writeByte(LF); |
- } |
- } |
- } else { |
- uart.write(data.buffer); |
- } |
- } |
-} |