File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
22# SPDX-License-Identifier: MIT
3+ """
4+ Button example with a custom font.
5+ """
36
47import os
58import board
Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
22# SPDX-License-Identifier: MIT
3+ """
4+ Simple button example.
5+ """
36
47import board
58import displayio
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
Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
22# SPDX-License-Identifier: MIT
3+ """
4+ Soundboard example with buttons.
5+ """
36
47import time
58from adafruit_pyportal import PyPortal
You can’t perform that action at this time.
0 commit comments