private static void Blink(int pin, int delay) { MCU.DigitalWrite(MCU.High, pin); Delay(delay); MCU.DigitalWrite(MCU.Low, pin); Delay(delay); }
public Servo(IMicrocontroller mcu, int pin, int minMilliseconds, int maxMilliseconds) { this.mcu = mcu; this.pin = pin; this.minMilliseconds = minMilliseconds; this.maxMilliseconds = maxMilliseconds; MCU.Initialize(mcu); }
public async Task InitAsync() { MCU.Initialize(mcu); await mcu.ExecuteAction(Init, pin); }
private static void Init(int pin) { MCU.PinMode(MCU.Output, pin); }