예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            var http = new HttpServer();
            var led  = new RgbLed(ellipse);
            var leds = new LedArray();

            var lamp = new LampWrapper(http, led, leds);

            lamp.Start(8282);
        }
예제 #2
0
 public Platform(int port, FrameworkElement led, LedDisplay ledDisplay)
 {
     _updater    = new Updater();
     _logger     = new Logger();
     _ir         = new IrReceiver();
     _httpserver = new HttpServer();
     _httpclient = new HttpClient();
     _iot        = new IotFramework();
     _led        = new RgbLed(led);
     _leds       = new LedArray(ledDisplay);
     _wifi       = new WiFiClient();
     _nvs        = new Nvs();
     _lux        = new LightSensor();
     _port       = port;
 }