Gor.Devices.Light_PhotoResistor.Light_PhotoResistor C# (CSharp) Method

Light_PhotoResistor() public method

public Light_PhotoResistor ( string Name, bool Simulation, Adc_MCP3208 Adc, int Channel, System.Logger Logger ) : System
Name string
Simulation bool
Adc Adc_MCP3208
Channel int
Logger System.Logger
return System
        public Light_PhotoResistor(string Name, bool Simulation, Adc_MCP3208 Adc, int Channel, Logger Logger)
            : base(Name, Simulation, Logger)
        {
            this.Adc = Adc;
            this.Channel = Channel;

            MinValue = 0;
            MaxValue = 1000;

            AlarmMin = MinValue;
            AlarmMax = MaxValue;

            voltage = 3.3;

            firstValue = true;

            if (Simulation)
                SetFirstValue();

            Initialization();
        }