//private Thread _thread; public OledDisplayDriver(OledDisplay oledDisplay, Font fontTitle, Font fontBody, Font fontStatus) { _oledDisplay = oledDisplay; _fontTitle = fontTitle; _fontBody = fontBody; _fontStatus = fontStatus; //_thread = new Thread(DriverLoop); //_thread.Start(); }
public Display(OledDisplay display) { defaultX = 10; defaultY = 10; defaultWidth = display.Width - 2 * defaultY; defaultHeight = display.Height - 2 * defaultX; myFont = Resources.GetFont(Resources.FontResources.small); screen = display; screen.SimpleGraphics.BackgroundColor = Gadgeteer.Color.White; imageUp = Resources.GetBitmap(Resources.BitmapResources.up); imageLeft = Resources.GetBitmap(Resources.BitmapResources.left); imageRight = Resources.GetBitmap(Resources.BitmapResources.right); }