WEMOS LOLIN32 Arduino sketch serial interrupt

Job ID: 35973966

Budget: $10 – $30 USD

Arduino sketch for a WEMOS LOLIN32, ESP32, to perform interrupt driven serial data Rx.

A simple loop() should be created to do a serial output of incrementing numbers to the Arduino “serial monitor”. The numbers should be output at the rate of 1 every second.

For example:
1
2
3
.
.
.

On an “interrupt” basis, if a character is sent from the serial monitor to the WEMOS LOLIN32, it should be echoed to the serial monitor with prepending and appending dashes.

For example:
123
124
125
- - - X - - -
126
127
128
129
130
- - - H - - -
131
132

Tell me if you have questions or suggestions.
Related categories: Microcontroller Arduino