This page has no translation to 한국어 yet. The original English version is below. If you’d like to help, great! See how to translate a documentation page in the contribution guide.
Note This is a web-version of a tutorial chapter embedded right into the XOD IDE. To get a better learning experience we recommend to install the desktop IDE or start the browser-based IDE, and you’ll see the same tutorial there.

Permanent Alarm

Screenshot of 203-permanent-alarm

Let’s extend the alarm device and make the LED stay enabled after trigerring even after the condition is no longer met. This is useful to signalize that something gone wrong even if it was not observed immediatelly.

When the value gets out of the range, the or node sends a pulse to the SET pin of the flip-flop node. So MEM returns True until we reset it, toggle it, or reboot the board.

Instructions #

Let’s make the alarm resettable.

  1. Add a button node.
  2. Set the corresponding PORT.
  3. Link PRS with the RST pin.
  4. Upload the program.

Heat or cool down the thermometer. Use the new button to turn the alarm off until the new trigger event is encountered.

Found a typo or mistake? Want to improve the text? Edit this page on GitHub and open a pull request. If you have a complex proposal or you want to discuss the content, feel free to start a new thread on XOD forum.