public GpioMorseTranslator InitMorseTranslator(Gpio gpioCore) { if (Controller == null) { IsTranslatorOnline = false; throw new InvalidOperationException("Cannot start Morse translator as the PinController is null!"); } GpioCore = gpioCore; IsTranslatorOnline = true; return(this); }
public PiController(Gpio gpioCore) => GpioCore = gpioCore;
public BluetoothController(Gpio gpioCore) => PiController = gpioCore.GpioController;