Taguchi Yuuki / IRremote

Dependents:   Lilnija_29012017 NucleoF042K6_IRReceiver

Files at this revision

API Documentation at this revision

Comitter:
yuhki50
Date:
Sat Jan 23 15:58:10 2016 +0000
Parent:
4:5e46ae042bc7
Child:
6:ee990cddff48
Commit message:
Serial.print to printf

Changed in this revision

ir_Mitsubishi.cpp Show annotated file Show diff for this revision Revisions of this file
ir_Sanyo.cpp Show annotated file Show diff for this revision Revisions of this file
ir_Sony.cpp Show annotated file Show diff for this revision Revisions of this file
ir_Template.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ir_Mitsubishi.cpp	Sat Jan 23 15:24:18 2016 +0000
+++ b/ir_Mitsubishi.cpp	Sat Jan 23 15:58:10 2016 +0000
@@ -26,7 +26,7 @@
 #if DECODE_MITSUBISHI
 bool  IRrecv::decodeMitsubishi (decode_results *results)
 {
-  // Serial.print("?!? decoding Mitsubishi:");Serial.print(irparams.rawlen); Serial.print(" want "); Serial.println( 2 * MITSUBISHI_BITS + 2);
+  //printf("?!? decoding Mitsubishi:%d want %d\n", irparams.rawlen, 2 * MITSUBISHI_BITS + 2);
   long data = 0;
   if (irparams.rawlen < 2 * MITSUBISHI_BITS + 2)  return false ;
   int offset = 0; // Skip first space
@@ -34,10 +34,8 @@
 
 #if 0
   // Put this back in for debugging - note can't use #DEBUG as if Debug on we don't see the repeat cos of the delay
-  Serial.print("IR Gap: ");
-  Serial.println( results->rawbuf[offset]);
-  Serial.println( "test against:");
-  Serial.println(results->rawbuf[offset]);
+  printf("IR Gap: %d\n", results->rawbuf[offset]);
+  printf("test against: %d\n", results->rawbuf[offset]);
 #endif
 
 #if 0
--- a/ir_Sanyo.cpp	Sat Jan 23 15:24:18 2016 +0000
+++ b/ir_Sanyo.cpp	Sat Jan 23 15:58:10 2016 +0000
@@ -31,10 +31,8 @@
 
 #if 0
 	// Put this back in for debugging - note can't use #DEBUG as if Debug on we don't see the repeat cos of the delay
-	Serial.print("IR Gap: ");
-	Serial.println( results->rawbuf[offset]);
-	Serial.println( "test against:");
-	Serial.println(results->rawbuf[offset]);
+	printf("IR Gap: %d\n", results->rawbuf[offset]);
+	printf("test against: %d\n", results->rawbuf[offset]);
 #endif
 
 	// Initial space
--- a/ir_Sony.cpp	Sat Jan 23 15:24:18 2016 +0000
+++ b/ir_Sony.cpp	Sat Jan 23 15:58:10 2016 +0000
@@ -55,7 +55,6 @@
 	// Some Sony's deliver repeats fast after first
 	// unfortunately can't spot difference from of repeat from two fast clicks
 	if (results->rawbuf[offset] < SONY_DOUBLE_SPACE_USECS) {
-		// Serial.print("IR Gap found: ");
 		results->bits = 0;
 		results->value = REPEAT;
 
--- a/ir_Template.cpp	Sat Jan 23 15:24:18 2016 +0000
+++ b/ir_Template.cpp	Sat Jan 23 15:58:10 2016 +0000
@@ -71,7 +71,7 @@
 3. Open MyDocuments\Arduino\libraries\IRremote\examples\IRrecvDumpV2.ino
 
    A. In the encoding() function, add:
-      case SHUZU:    Serial.print("SHUZU");     break ;
+      case SHUZU:    printf("SHUZU");     break ;
 
 Now open the Arduino IDE, load up the rawDump.ino sketch, and run it.
 Hopefully it will compile and upload.