Skip to content

Commit 1a7f6b1

Browse files
committed
added stub for testing #84
1 parent eaef36e commit 1a7f6b1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

test/stub/pigpio.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
INPUT=0
2+
OUTPUT=1
3+
4+
EITHER_EDGE = 2
5+
FALLING_EDGE = 1
6+
RISING_EDGE = 0
7+
8+
class pi(object):
9+
def __init__(self, host="localhost", port=8888):
10+
pass
11+
12+

test/stub/smbus2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class SMBus(object):
2+
def __init__(self, channel):
3+
pass
4+
5+
def write_byte_data(self, a, b, c):
6+
pass

0 commit comments

Comments
 (0)