UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


code:nmea_collection

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
code:nmea_collection [2008/03/22 13:09]
joshatkins changing title
— (current)
Line 1: Line 1:
-====== NMEA collection (Arduino code) ====== 
- 
-void setup() { 
-  Serial.begin(9600);​ // Initialize the serial connection 
-} 
- 
-void loop() { 
-  if(Serial.available()>​0) { 
-    int nmea = Serial.read();​ 
-    if(nmea==0) { 
-      Serial.print(nmea);​ 
-    } 
-    else { 
-      Serial.print(nmea,​ BYTE); 
-    } 
-    Serial.println();​ 
-  } 
-} 
- 
  
code/nmea_collection.1206191377.txt.gz ยท Last modified: 2008/07/19 23:31 (external edit)