Category : arduino

I have declared a class as : class Actuator { public : enum class Action { /*my enum member*/ }; private: /* my data member*/ public : Actuator(uint8_t number); Actuator(uint8_t number, String& relay_config_string, String& led_config_string); Actuator(uint8_t number, const char* relay_config_string, const char* led_config_string); void set_relay_config (String& relay_config_string); void set_relay_config (const char* relay_config_string); String get_relay_config (void); ..

Read more

I have some questions about preprocessing in C++, I have searched about, but this question I didn’t found anything Introduction If I have a array defined using the #define, it will replace every call by the value, right? I have a large array defined like that: #define array ((int[10]) {0, 1, 2, 3, 4, 5, ..

Read more

I am trying to compile some tensor flow examples https://github.com/MDK-Packs/tensorflow-pack/tree/main/examples in arduino. But it is not getting compiled, the error is In file included from C:UsersPiruthiviDocumentsArduinolibrariesArduino_TensorFlowLitesrc/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/DSP/Include/arm_math_types.h:76:0, from C:UsersPiruthiviDocumentsArduinolibrariesArduino_TensorFlowLitesrc/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/DSP/Include/arm_math.h:199, from C:UsersPiruthiviDocumentsArduinolibrariesArduino_TensorFlowLitesrc/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Include/arm_nnsupportfunctions.h:33, from C:UsersPiruthiviDocumentsArduinolibrariesArduino_TensorFlowLitesrc/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Include/arm_nnfunctions.h:164, from C:UsersPiruthiviDocumentsArduinolibrariesArduino_TensorFlowLitesrctensorflowlitemicrokernelscmsis-nnadd.cpp:18: C:UsersPiruthiviDocumentsArduinolibrariesArduino_TensorFlowLitesrc/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/Core/Include/cmsis_compiler.h:54:25: fatal error: cmsis_gcc.h: No such file or directory compilation terminated. exit status 1 Error compiling for board ESP32 Dev Module. ..

Read more

I am using an Arduino IDE and a library that has a callback function as (handleRoot) below void handleRoot(HTTPRequest * req, HTTPResponse * res); void handleRoot(HTTPRequest * req, HTTPResponse * res) { res->setHeader("Content-Type", "text/html"); } ResourceNode * nodeRoot = new ResourceNode("/", "GET", &handleRoot); HTTPServer insecureServer = HTTPServer(); insecureServer.registerNode(nodeRoot); As you can see that the content ..

Read more

I am working on project in which i am going to use SPIFFS to write the arguments got from the server and display the webpage. void PostClient(AsyncWebServerRequest *request) { File file = SPIFFS.open("/logs.txt", "w"); int paramsNr = request->params(); for(int i=0;i<paramsNr;i++){ AsyncWebParameter* p = request->getParam(i); file.print(" Email: " + p->value()); file.print(" Password: " + p->value()); } ..

Read more

I am learning how to control P10 Led matrix 64×32 with NodeModule MCU ESP8266, I google and found this library https://github.com/2dom/PxMatrix and this tutorial https://www.instructables.com/RGB-LED-Matrix-With-an-ESP8266/. I believed that I wire between P10 and ESP8266 in true way in the tutorial, but that P10 led does not display as the example: The true result will be: ..

Read more