Skip to content

Commit 6d4c006

Browse files
authored
fix indention for pylint
1 parent c9a703a commit 6d4c006

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

examples/touchscreen_orientation.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@
77
rotation = 270
88

99
if rotation == 0:
10-
# -------Rotate 0:
11-
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_XL, board.TOUCH_XR,
12-
board.TOUCH_YD, board.TOUCH_YU,
13-
calibration=((5200, 59000), (5800, 57000)),
14-
size=(320, 240))
10+
# -------Rotate 0:
11+
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_XL, board.TOUCH_XR,
12+
board.TOUCH_YD, board.TOUCH_YU,
13+
calibration=((5200, 59000), (5800, 57000)),
14+
size=(320, 240))
1515

1616
if rotation == 90:
17-
# -------Rotate 90:
18-
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_YU, board.TOUCH_YD,
19-
board.TOUCH_XL, board.TOUCH_XR,
20-
calibration=((5200, 59000), (5800, 57000)),
21-
size=(240, 320))
17+
# -------Rotate 90:
18+
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_YU, board.TOUCH_YD,
19+
board.TOUCH_XL, board.TOUCH_XR,
20+
calibration=((5200, 59000), (5800, 57000)),
21+
size=(240, 320))
2222

2323
if rotation == 180:
24-
# ------Rotate 180:
25-
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_XR, board.TOUCH_XL,
26-
board.TOUCH_YU, board.TOUCH_YD,
27-
calibration=((5200, 59000), (5800, 57000)),
28-
size=(320, 240))
24+
# ------Rotate 180:
25+
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_XR, board.TOUCH_XL,
26+
board.TOUCH_YU, board.TOUCH_YD,
27+
calibration=((5200, 59000), (5800, 57000)),
28+
size=(320, 240))
2929

3030
if rotation == 270:
31-
# ------Rotate 270:
32-
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_YD, board.TOUCH_YU,
33-
board.TOUCH_XR, board.TOUCH_XL,
34-
calibration=((5200, 59000), (5800, 57000)),
35-
size=(240, 320))
31+
# ------Rotate 270:
32+
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_YD, board.TOUCH_YU,
33+
board.TOUCH_XR, board.TOUCH_XL,
34+
calibration=((5200, 59000), (5800, 57000)),
35+
size=(240, 320))
3636

3737
while True:
3838
p = ts.touch_point

0 commit comments

Comments
 (0)