예제 #1
0
        /// <summary>
		/// Wake the the device if it's in sleep state
		/// </summary>
        public void Wake()
        {
            ushort conf_shutdown;
            ushort config = i2CPeripheral.ReadUShort(MCP_REG_CONFIG, ByteOrder.BigEndian);

            config = (ushort)(config & (~MCP_CONFIG_SHUTDOWN));

            i2CPeripheral.WriteUShort(MCP_REG_CONFIG, config);
        }