using System; using System.Text; using System.Linq; using System.Drawing; using System.Diagnostics; using System.Windows.Forms; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Tango.Stubs.UI; public void OnExecute(StubManager stubManager) { stubManager.Run("StubGPIOInputSetupRequest" ,"A", 7, 1, 1); // Set PS3 to input with Pull up for (int i = 0; i < 50; i++) { stubManager.Run("StubGPIOReadBitRequest" ,"A", 7, false, false);//Read pin 3 Thread.Sleep(1000); } }