Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     serialHandler = new SerialHandler();
     UpdateAvailablePorts();
     DisableFeaturesButtons();
     comboBoxInterval.Items.Add("60000");
     comboBoxNumber.Items.Add("00010");
     comboBoxNumber.Items.Add("00060");
     comboBoxNumber.Items.Add("00120");
     comboBoxNumber.Items.Add("00480");
     comboBoxNumber.Items.Add("01440");
     comboBoxNumber.Items.Add("60000");
 }
Exemplo n.º 2
0
 public static void EraseSDCard(SerialHandler serialHandler)
 {
     serialHandler.SendCommand("e#");
 }
Exemplo n.º 3
0
 public static void ConfigureGeiger(SerialHandler serialHandler, string intervall, string numberOfIntervals)
 {
     serialHandler.SendCommand("s" + intervall + numberOfIntervals + "#");
 }
Exemplo n.º 4
0
 // c20190219120800# gir 19.02.2019 12:08:00
 public static void SyncClockOnArduino(SerialHandler serialHandler)
 {
     serialHandler.SendCommand("c" + DateTime.Now.ToString("yyyyMMddHHmmss") + "#");
 }