public void DigitalRead(CInterpreter state) { var pin = state.ReadArg(0).Int16Value; var value = Pins[pin].DigitalValue; state.Push(value); }
public void AnalogRead(CInterpreter state) { var pin = state.ReadArg(0).Int16Value; var value = Pins[pin].AnalogValue; state.Push(value); }
public void Map(CInterpreter state) { state.Push(0); }
public void Constrain(CInterpreter state) { state.Push(0); }
public void Millis(CInterpreter state) { state.Push((int)stopwatch.ElapsedMilliseconds); }