A simple library that I use for building mixed type messages between microcontrollers. Versions for processing and Arduino also exist -- but have not yet been tested with this library.

Dependents:   template_sd

Files at this revision

API Documentation at this revision

Comitter:
hex705
Date:
Wed Jul 03 15:17:57 2013 +0000
Parent:
0:eb5b7d5fbbca
Commit message:
clean up includes;

Changed in this revision

Glue.cpp Show annotated file Show diff for this revision Revisions of this file
Glue.h Show annotated file Show diff for this revision Revisions of this file
--- a/Glue.cpp	Wed Jul 03 14:53:45 2013 +0000
+++ b/Glue.cpp	Wed Jul 03 15:17:57 2013 +0000
@@ -36,7 +36,7 @@
     END_BYTE   = _end_byte;
     DELIMITER  = _delimiter;
 
-    clear();
+    Glue::clear();
 }
 
 
@@ -97,7 +97,7 @@
 void Glue::add( float f )
 {
     // note this precision could be increased
-//    sprintf( tempAdd, "%.2f" , f  ) ;
+    sprintf( tempAdd, "%.2f" , f  ) ;
     append ( tempAdd );
     
     
--- a/Glue.h	Wed Jul 03 14:53:45 2013 +0000
+++ b/Glue.h	Wed Jul 03 15:17:57 2013 +0000
@@ -13,9 +13,6 @@
 #ifndef Glue_h
 #define Glue_h
 
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
 
 
 class Glue