private static void Ads1115(I2cBus i2c)
        {
            var ads1115 = new ADS1115(i2c, 0x4A);

            char keyChar = ' ';

            do
            {
                if (Console.KeyAvailable)
                {
                    keyChar = Console.ReadKey().KeyChar;
                }

                var ch0 = ads1115.ReadAdcSingleEnded(0);
                Thread.Sleep(10);

                var ch1 = ads1115.ReadAdcSingleEnded(1);
                Thread.Sleep(10);

                var v0 = ads1115.ConvertToVoltage(ch0);
                var v1 = ads1115.ConvertToVoltage(ch1);

                Console.WriteLine($"v0 {v0:F3} {ch0} v1 {v1:F3} {ch1}");
                Thread.Sleep(300);
            } while (keyChar != 'x');
        }
        private static void Mcp4725(I2cBus i2c)
        {
            var mcp     = new Mcp4725.Mcp4725(i2c);
            var ads1115 = new ADS1115(i2c, 0x4A);

            char   keyChar = ' ';
            UInt16 outVar  = 0;

            do
            {
                if (Console.KeyAvailable)
                {
                    keyChar = Console.ReadKey().KeyChar;
                    if (keyChar == '+')
                    {
                        outVar += 10;
                    }

                    if (keyChar == '-')
                    {
                        outVar -= 10;
                    }
                }

                mcp.SetVoltage(outVar, false);
                var ch0 = ads1115.ReadAdcSingleEnded(0);
                Thread.Sleep(10);

                var v0 = ads1115.ConvertToVoltage(ch0);

                Console.WriteLine($"OutVar {outVar} In {v0}");
                Thread.Sleep(300);
            } while (keyChar != 'x');
        }