Introduction to Python and C++

Introduction to Python and C++#

The SLM-RP4 runs Raspberry Pi OS, and the backplane is directly reachable from any program on the device. Two libraries are provided for this purpose:

  • synergy_logic, a Python package.

  • Synergy, a C++ library.

Both are preloaded on the device under the home directory of the slm-rp4 user. See Getting Started with Python and Getting Started with C++ for setup, examples and API reference.

Hardware watchdog#

The base controller provides a user-programmable hardware watchdog. Once configured and started, the program is expected to reset (“pet”) the watchdog on each cycle. If the program crashes or hangs, the watchdog expires, resets the base controller, and drives all outputs off (zero) without any software involvement.

The watchdog is independent of Linux and the Python or C++ runtime, and should be configured by any program that drives outputs. Example usage is in Python: Examples and the equivalent C++ page.