public Ultrason(int socket, OBSTACLE_DIRECTION direction) : base(direction) { capteurUltrason = new GTM.GHIElectronics.DistanceUS3(socket); capteurUltrason.DebugPrintEnabled = true; //lastStatus = IsThereAnObstacle(); /*Gadgeteer.Timer timer = new Gadgeteer.Timer(REFRESH_RATE); * timer.Tick += this.detectObstacle; * timer.Start();*/ }
private void InitializeModules() { this.usbClientEDP = new GTM.GHIElectronics.USBClientEDP(1); this.displayTE35 = new GTM.GHIElectronics.DisplayTE35(14, 13, 12, 10); this.tunes = new GTM.GHIElectronics.Tunes(8); this.ethernetJ11D = new GTM.GHIElectronics.EthernetJ11D(7); this.sdCard = new GTM.GHIElectronics.SDCard(5); this.ledStrip = new GTM.GHIElectronics.LEDStrip(11); this.distanceUS32 = new GTM.GHIElectronics.DistanceUS3(6); this.distanceUS3 = new GTM.GHIElectronics.DistanceUS3(9); }