Main idea . Serial port interruptions are rare, so they should not affect the continuous cycle of the pressure regulator. Here is a piece of code with interruption from an incoming message, parsing of an incoming control line, and reading of an analog port.

Committer:
Aleksk
Date:
Fri Apr 17 09:35:30 2020 +0000
Revision:
2:df6b8ad18bc5
Parent:
0:342c0ede45d5
Relay regulator. Set pressure = 1000 +/- 25 mV.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Aleksk 0:342c0ede45d5 1 .build
Aleksk 0:342c0ede45d5 2 .mbed
Aleksk 0:342c0ede45d5 3 projectfiles
Aleksk 0:342c0ede45d5 4 *.py*