blob: 34f72949879ccfc63277ffa0f0d0f8a635f28dc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 < 5; i++)
{
stubManager.Run("StubGPIOReadBitRequest" ,"A", 7, true, true);//Read pin 3 (Polling, timeout 2 SEC for every request)
Thread.Sleep(1000);
}
}
|