/// <summary> /// Start GPIO Clock /// </summary> public void StartGPIOClock() { BackupPinMode = GPIO.GetMode(GPIOClockPin); BackupPinValue = GPIO.Read(GPIOClockPin); GPIO.SetMode(GPIOClockPin, PinMode.GpioClock); GPIO.SetClock(GPIOClockPin, GPIOClockSpeed); UpdatePinStates(); Log.Add($"Pin {GPIOClockPin} in clock mode at {GPIOClockSpeed}"); }