|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module containing stubs for API generation of the 'digitalio' module. |
|
8 """ |
|
9 |
|
10 class DriveMode(): |
|
11 PUSH_PULL = 0 |
|
12 OPEN_DRAIN = 0 |
|
13 |
|
14 class DigitalInOut(): |
|
15 def __init__(self, pin): |
|
16 pass |
|
17 |
|
18 def deinit(self): |
|
19 pass |
|
20 |
|
21 def switch_to_output(self, value=False, drive_mode=DriveMode.PUSH_PULL): |
|
22 pass |
|
23 |
|
24 def switch_to_input(self, pull=None): |
|
25 pass |
|
26 |
|
27 @property |
|
28 def direction(self): |
|
29 pass |
|
30 |
|
31 @property |
|
32 def value(self): |
|
33 pass |
|
34 |
|
35 @property |
|
36 def drive_mode(self): |
|
37 pass |
|
38 |
|
39 @property |
|
40 def pull(self): |
|
41 pass |
|
42 |
|
43 class Pull(): |
|
44 UP = 0 |
|
45 DOWN = 0 |