nad-controller
Some NAD amplifiers has an RS-232 port on the back that offers functionality to control the amplifiers behaviour. The amplifiers has a number of properties that can be read and most of them can also be changed. Different models have a different set of properties. In addition to this, if a physical button is pressed this is also send over the serial port. This library aims to makes it a little easier to work with it by wrapping it all in one interface.
Functionality
- Queueing of commands. The serial port only accepts one command at a time, and if commands are sent too frequent some command will be ignored.
- Distinguishing if events are triggered by physical pressing buttons or if they are triggered by a serial port command.
Example
const NadController = NadController;const MODELS = MODELS; let controller = '/dev/ttyUSB0' model: MODELSC355 ;controller;