Beispiel #1
0
 // This method is run when the mainboard is powered up or reset.
 void ProgramStarted()
 {
     //TODO: Read config values to find out if we have a USB serial adapter and on which port? do we have a serial-capable Bee? Do we have an ethernet port?
     //  Construct the comms channels on that basis.  For now, its hardcoded for serial usb on port 1, and with ethernet
     //TODO: Set name based on a config value
     _firmata = new FirmataService("GHICerbuino", "", 1, 0);
     _board = new CerbuinoBoard(_firmata, Mainboard);
     _firmata.Open(_board, new UsbSerialCommunicationChannel(usbSerial) /*, new EthernetCommunicationChannel()*/);
 }
Beispiel #2
0
 // This method is run when the mainboard is powered up or reset.
 void ProgramStarted()
 {
     //TODO: Read config values to find out if we have a USB serial adapter and on which port? do we have a serial-capable Bee? Do we have an ethernet port?
     //  Construct the comms channels on that basis.  For now, its hardcoded for serial usb on port 1, and with ethernet
     //TODO: Set name based on a config value
     _firmata = new FirmataService("GHICerbuino", "", 1, 0);
     _board   = new CerbuinoBoard(_firmata, Mainboard);
     _firmata.Open(_board, new UsbSerialCommunicationChannel(usbSerial) /*, new EthernetCommunicationChannel()*/);
 }