public void SetRegister(LightChannels channel, byte value)
        {
            Span <byte> data = stackalloc byte[] { (byte)channel, value };

            _device.Write(data);
        }
        /// <summary>
        /// Reads the channel status of MPR121 controller.
        /// </summary>
        /// <param name="channel">The channel to read status.</param>
        /// <remark>
        /// Please use ReadChannelStatuses() if you need to read statuses of multiple channels.
        /// Using this method several times to read status for several channels can affect the performance.
        /// </remark>
        public bool ReadChannelStatus(LightChannels channel)
        {
            RefreshChannelStatuses();

            return(_statuses[channel]);
        }