MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / printDurations

Function printDurations

src/ir_DistanceWidthProtocol.hpp:127–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126#if defined(LOCAL_DEBUG)
127void printDurations(uint8_t aArray[], uint8_t aMaxIndex) {
128 for (uint_fast8_t i = 0; i <= aMaxIndex; i++) {
129 //Print index at the beginning of a new line
130 if (i % 10 == 0) {
131 if (i == 0) {
132 Serial.print(' '); // indentation for the first index 0
133 } else {
134 Serial.println(); // new line for next indexes 10, 20 etc.
135 }
136 Serial.print(i);
137 Serial.print(F(": "));
138 }
139 // Print number of values in array and duration if != 0
140 Serial.print(aArray[i]);
141 if (aArray[i] != 0) {
142 Serial.print('x');
143 Serial.print(i * (uint16_t) MICROS_PER_TICK);
144 }
145 Serial.print(F(" | "));
146 }
147 Serial.println();
148}
149#endif
150
151/*

Callers 1

decodeDistanceWidthMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected