Exemplo n.º 1
0
        public Selector(Selectors id, AnalogIn.Pin analogPin)
            : base()
        {
            inputPin   = analogPin;
            selectorId = id;

            selectorPort = new AnalogIn(inputPin);
            selectorPort.SetLinearScale(0, 3300);
            currentPosition = 0;
        }
Exemplo n.º 2
0
        public Selector(Selectors id, AnalogIn.Pin analogPin)
            : base()
        {
            inputPin = analogPin;
            selectorId = id;

            selectorPort = new AnalogIn(inputPin);
            selectorPort.SetLinearScale(0, 3300);
            currentPosition = 0;
        }