Beispiel #1
0
		public SensorModel(MonoBrickFirmware.Sensors.SensorPort port, bool isDummy)
		{
			Port = port.ToString();
			this.isDummy = isDummy;
			if (isDummy) 
			{
				sensor = new DummySensor(port);
			} 
			else 
			{
				sensor = new NoSensor (port);
			}
		}
Beispiel #2
0
		public override void DrawBitmap (BitStreamer bs, MonoBrickFirmware.Display.Point p, uint xSize, uint ySize, bool color)
		{
			base.DrawBitmap (bs, p, xSize, ySize, color);
			for (int x = 0; x < xSize; x++) 
			{
				for (int y = 0; y < ySize; y++)
				{
					bool isSet = base.IsPixelSet (x + p.X, y + p.Y);
					if (isSet)
					{
						display.SetPixel (x + p.X, y + p.Y);
					} 
					else 
					{
						display.ClearPixel(x + p.X, y + p.Y);		
					}
				}
			}
		}
		public DummyMotorModel(MonoBrickFirmware.Movement.MotorPort port)
		{
			Port = port.ToString();
		}
Beispiel #4
0
		public MotorModel (MonoBrickFirmware.Movement.MotorPort port)
		{
			Port = port.ToString();
			motor = new Motor(port);
			Update();
		}
		public void OnDrawTitle (MonoBrickFirmware.Display.Font font, MonoBrickFirmware.Display.Rectangle rectangle, bool selected)
		{
			throw new System.NotImplementedException ();
		}