-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I have the following situation:
How can an Arduino detect this event?
Sample code
#include <Arduino.h>
#include <Dwin2.h>
// Rx Tx ESP gpio connected to DWin Display
#define RX_PIN 16
#define TX_PIN 17
// Class of controlling UI elements of the display
DWIN2 dwc;
// Callback function to receive a response from the display
void dwinEchoCallback(DWIN2 &d);
const int d = 1000;
void setup() {
Serial.begin(115200);
while (Serial.available()) {}
dwc.begin();
// Set callback for answer
dwc.setUartCbHandler(dwinEchoCallback);
// Show commands and answers
dwc.setEcho(false);
}
void loop() {
delay(100);
}
void dwinEchoCallback(DWIN2 &d)
{
Serial.print("Echo ");
Serial.println(d.getDwinEcho());
}
Metadata
Metadata
Assignees
Labels
No labels
