Skip to content

Commit f61d917

Browse files
committed
cleaning up multi_tenant
1 parent 52ec163 commit f61d917

14 files changed

+7
-2274
lines changed

examples/multi_tenant/arduino_HM01B0_platform.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/multi_tenant/arduino_detection_responder.cpp

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,13 @@ bool RespondToKWS(tflite::ErrorReporter* error_reporter, const char* found_comma
5454
if (found_command[0] == 'n') {
5555
digitalWrite(LEDR, LOW); // Red for no
5656
}
57-
58-
if (found_command[0] == 'u') {
59-
//toggle yellow side LED everytime unknown is heard
60-
++count;
61-
if (count & 1) {
62-
digitalWrite(LED_BUILTIN, HIGH);
63-
} else {
64-
digitalWrite(LED_BUILTIN, LOW);
65-
}
66-
}
57+
}
58+
//toggle yellow side LED everytime a micro_speech inference is performed
59+
++count;
60+
if (count & 1) {
61+
digitalWrite(LED_BUILTIN, HIGH);
62+
} else {
63+
digitalWrite(LED_BUILTIN, LOW);
6764
}
6865

6966
return false;

examples/multi_tenant/arduino_image_provider.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ TfLiteStatus GetImage(tflite::ErrorReporter* error_reporter, int image_width,
2626
static bool g_is_camera_initialized = false;
2727
static bool serial_is_initialized = false;
2828

29-
if (!serial_is_initialized) {
30-
Serial.begin(9600);
31-
serial_is_initialized = true;
32-
}
33-
3429
// Initialize camera if necessary
3530
if (!g_is_camera_initialized) {
3631
if (!Camera.begin(QCIF, GRAYSCALE, 5, OV7675)) {
@@ -54,9 +49,6 @@ TfLiteStatus GetImage(tflite::ErrorReporter* error_reporter, int image_width,
5449
}
5550
}
5651

57-
// Write image data to serial so we can visualize it
58-
// TF_LITE_REPORT_ERROR(error_reporter, "Image data:");
59-
// Serial.write((const char*)image_data,96*96); // cast to char for raw binary write to serial monitor
6052

6153
return kTfLiteOk;
6254
}

0 commit comments

Comments
 (0)