Skip to content

Commit ef5e12b

Browse files
committed
Updated doc-string, ran black
1 parent 7bfc7b4 commit ef5e12b

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

examples/display_button_customfont.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
22
# SPDX-License-Identifier: MIT
3+
"""
4+
Button example with a custom font.
5+
"""
36

47
import os
58
import board

examples/display_button_simpletest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
22
# SPDX-License-Identifier: MIT
3+
"""
4+
Simple button example.
5+
"""
36

47
import board
58
import displayio
@@ -57,6 +60,6 @@
5760
if button.contains(p):
5861
button.selected = True
5962
else:
60-
button.selected = False # if touch is dragged outside of button
63+
button.selected = False # if touch is dragged outside of button
6164
else:
62-
button.selected = False # if touch is released
65+
button.selected = False # if touch is released

examples/display_button_soundboard.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
22
# SPDX-License-Identifier: MIT
3+
"""
4+
Soundboard example with buttons.
5+
"""
36

47
import time
58
from adafruit_pyportal import PyPortal

0 commit comments

Comments
 (0)