User Tools

Site Tools


tutorials:arduino:uart

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:arduino:uart [2014/03/20 17:31]
admin created
— (current)
Line 1: Line 1:
-====== Uart ====== 
  
-<WRAP noprint><​WRAP left box 60%> 
-//__About this Article__// 
-  * **Author**: Cubieboard Documentations --- benn@cubietech.com --- 2014/03/20 17:13 
-  * **Copyrights**:​ [[http://​creativecommons.org/​licenses/​by-sa/​3.0/​|CC Attribution-Share Alike 3.0 Unported]] 
-  * **Contributors**:​ [[http://​cubieboard.org/​|Cubieboard Community]] : ... 
-</​WRAP></​WRAP>​ 
- 
-===== Abstract ===== 
-Use the arduino commuication with through uart.It is an expamle test the uart inter  ​ 
- 
-===== re ===== 
-<​code>​ 
-    String comdata = "";​ 
- 
-    void setup() 
-    { 
-        Serial.begin(9600);​ 
-    } 
- 
-    void loop() 
-    { 
-        while (Serial.available() > 0)  ​ 
-        { 
-            comdata += char(Serial.read());​ 
-            delay(2); 
-        } 
-        if (comdata.length() > 0) 
-        { 
-            Serial.println(comdata);​ 
-            comdata = "";​ 
-        } 
-    } 
- 
- 
-</​code>​ 
-==== Headline ==== 
- 
- 
-===== Headline ===== 
- 
-=== See Also === 
- 
-<WRAP noprint> 
-{{tag>​Cubieboard Cubietruck}} 
-</​WRAP>​ 
tutorials/arduino/uart.1395307882.txt.gz · Last modified: 2014/03/20 17:31 by admin