File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2
2
# SPDX-License-Identifier: MIT
3
+ """
4
+ Button example with a custom font.
5
+ """
3
6
4
7
import os
5
8
import board
Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2
2
# SPDX-License-Identifier: MIT
3
+ """
4
+ Simple button example.
5
+ """
3
6
4
7
import board
5
8
import displayio
57
60
if button .contains (p ):
58
61
button .selected = True
59
62
else :
60
- button .selected = False # if touch is dragged outside of button
63
+ button .selected = False # if touch is dragged outside of button
61
64
else :
62
- button .selected = False # if touch is released
65
+ button .selected = False # if touch is released
Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2
2
# SPDX-License-Identifier: MIT
3
+ """
4
+ Soundboard example with buttons.
5
+ """
3
6
4
7
import time
5
8
from adafruit_pyportal import PyPortal
You can’t perform that action at this time.
0 commit comments