protected async override Task Initialize(ISocket parentSocket) { this.pwms = new PwmOutput[] { await parentSocket.CreatePwmOutputAsync(SocketPinNumber.Eight), await parentSocket.CreatePwmOutputAsync(SocketPinNumber.Seven) }; this.directions = new DigitalIO[] { await parentSocket.CreateDigitalIOAsync(SocketPinNumber.Six, false), await parentSocket.CreateDigitalIOAsync(SocketPinNumber.Nine, false) }; this.StopAll(); }
protected async override Task Initialize(ISocket parentSocket) { this.pwm = await parentSocket.CreatePwmOutputAsync(SocketPinNumber.Nine); }