public int Read(ControlPot pot)
        {
            string response = _mbedService.RPC("Read", (int)pot);

            int intResponse = Int32.Parse(response);

            return(intResponse);
        }
 public void Write(ControlPot pot, int value)
 {
     _mbedService.RPC("Write", (int)pot, value);
     // used to turn the led off on the mbed.
     Read(pot);
 }
Esempio n. 3
0
 public void Write(ControlPot pot, int value)
 {
     _mbedService.RPC("Write", (int)pot, value);
     // used to turn the led off on the mbed.
     Read(pot);
 }
Esempio n. 4
0
        public int Read(ControlPot pot)
        {
            string response = _mbedService.RPC("Read", (int)pot);

            int intResponse = Int32.Parse(response);

            return intResponse;
        }