Exemple #1
0
            public void DigitalRead(CInterpreter state)
            {
                var pin   = state.ReadArg(0).Int16Value;
                var value = Pins[pin].DigitalValue;

                state.Push(value);
            }
Exemple #2
0
            public void AnalogRead(CInterpreter state)
            {
                var pin   = state.ReadArg(0).Int16Value;
                var value = Pins[pin].AnalogValue;

                state.Push(value);
            }
Exemple #3
0
 public void Map(CInterpreter state)
 {
     state.Push(0);
 }
Exemple #4
0
 public void Constrain(CInterpreter state)
 {
     state.Push(0);
 }
Exemple #5
0
 public void Millis(CInterpreter state)
 {
     state.Push((int)stopwatch.ElapsedMilliseconds);
 }