Exemple #1
0
 protected async override Task Initialize(ISocket parentSocket)
 {
     this.i2c = await parentSocket.CreateI2cDeviceAsync(new Windows.Devices.I2c.I2cConnectionSettings(TempHumidSI70.I2cAddress), SocketPinNumber.Five, SocketPinNumber.Four);
 }
Exemple #2
0
        protected async override Task Initialize(ISocket parentSocket)
        {
            this.i2c = await parentSocket.CreateI2cDeviceAsync(new Windows.Devices.I2c.I2cConnectionSettings(AccelG248.I2cAddress));

            this.i2c.WriteRegister(0x2A, 0x01);
        }