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();
		}
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 protected async override Task Initialize(ISocket parentSocket)
 {
     this.pwm = await parentSocket.CreatePwmOutputAsync(SocketPinNumber.Nine);
 }