aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/READ_GPIO_A_PIN_7_High_Speed.cs
blob: ee3dec3c8872ef565b9dbd0498d6b76f93d86a6e (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 < 50; i++)
    { 	
		stubManager.Run("StubGPIOReadBitRequest" ,"A", 7, false, false);//Read pin 3 
    	Thread.Sleep(1000);
    }
}