aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/READ_GPIO_S_PIN_3.cs
blob: 2955e73c0b03fc13b5b9c305e354e8d4726d5d46 (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" ,"S", 3, 1, 1); // Set PS3 to input with Pull up   
	for (int i = 0; i < 50; i++)
    { 	
		stubManager.Run("StubGPIOReadBitRequest" ,"S", 3, false, false);//Read pin 3
    	Thread.Sleep(1000);
    }
}