Skip to content

Commit faed1ce

Browse files
committed
Platform-specific constants for input/output ports
1 parent f874979 commit faed1ce

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

ev3dev/brickpi.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@
2929
from .core import *
3030

3131

32+
OUTPUT_A = 'ttyAMA0:outA'
33+
OUTPUT_B = 'ttyAMA0:outB'
34+
OUTPUT_C = 'ttyAMA0:outC'
35+
OUTPUT_D = 'ttyAMA0:outD'
36+
37+
INPUT_1 = 'ttyAMA0:in1'
38+
INPUT_2 = 'ttyAMA0:in2'
39+
INPUT_3 = 'ttyAMA0:in3'
40+
INPUT_4 = 'ttyAMA0:in4'
41+
42+
3243
class Leds(object):
3344
"""
3445
The BrickPi LEDs.

ev3dev/ev3.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@
2929
from .core import *
3030

3131

32+
OUTPUT_A = 'outA'
33+
OUTPUT_B = 'outB'
34+
OUTPUT_C = 'outC'
35+
OUTPUT_D = 'outD'
36+
37+
INPUT_1 = 'in1'
38+
INPUT_2 = 'in2'
39+
INPUT_3 = 'in3'
40+
INPUT_4 = 'in4'
41+
42+
3243
class Leds(object):
3344
"""
3445
The EV3 LEDs.

0 commit comments

Comments
 (0)