Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
private static void runloop()
{
if (!port.IsOpen) { port.Open();if(debug){ Console.WriteLine("Attempting the opening of port: " + portnum);} Thread.Sleep(portdelay); }
DateTime now = DateTime.Now;
port.DtrEnable = true; port.RtsEnable = true;
if (debug) { Console.WriteLine("switching on for MilliSeconds: " + ontime + " at: " + now); }
while (DateTime.Now < now.AddMilliseconds(ontime)) { }
now = DateTime.Now;
port.DtrEnable = false; port.RtsEnable = false;
if (debug) { Console.WriteLine("switching off for MilliSeconds: " + offtime + " at: " + now); }
while (DateTime.Now < now.AddMilliseconds(offtime)) { }
}