work on GPIO handling

This commit is contained in:
Zwer2k
2021-06-13 01:24:02 +02:00
parent c25adfe28a
commit f24c40d780
13 changed files with 330 additions and 58 deletions

View File

@@ -241,7 +241,11 @@ bool ClassFlowDigit::doNeuralNetwork(string time)
CTfLiteClass *tflite = new CTfLiteClass;
string zwcnn = FormatFileName("/sdcard" + cnnmodelfile);
printf(zwcnn.c_str());printf("\n");
tflite->LoadModel(zwcnn);
if (!tflite->LoadModel(zwcnn)) {
printf("Can't read model file /sdcard%s\n", cnnmodelfile.c_str());
return false;
}
tflite->MakeAllocate();
#endif