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