This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import board | |
from digitalio import DigitalInOut, Direction, Pull | |
LONG_PRESS_DURATION = 0.65 # seconds | |
btn_select = DigitalInOut(board.BUTTON_SELECT) | |
btn_select.direction = Direction.INPUT | |
btn_select.pull = Pull.DOWN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2020 Tim C | |
# | |
# SPDX-License-Identifier: Unlicense | |
""" | |
Make green and purple rectangles and a | |
"Hello World" label. | |
""" | |
import displayio | |
import terminalio | |
from adafruit_display_text import label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import board | |
import displayio | |
import adafruit_imageload | |
from adafruit_displayio_layout.widgets.easing import back_easeinout as easein | |
from adafruit_displayio_layout.widgets.easing import back_easeinout as easeout | |
def _animate_value( | |
start_val, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: Michael Hadley, mikewesthad.com | |
* Asset Credits: | |
* - Tuxemon, https://github.com/Tuxemon/Tuxemon | |
*/ | |
const config = { | |
type: Phaser.AUTO, | |
width: 800, | |
height: 600, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'formatters': { | |
"timestamped": { | |
'format': '%(asctime)s %(name)-12s %(levelname)-8s %(message)s', | |
} | |
}, | |
'handlers': { | |
'console': { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2021 Tim C, written for Adafruit Industries | |
# | |
# SPDX-License-Identifier: MIT | |
""" | |
Make green and purple rectangles and a | |
"Hello World" label. Displayed with Blinka_Displayio_PyGameDisplay | |
""" | |
import displayio | |
import terminalio | |
from adafruit_display_text import label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2020 Tim C, written for Adafruit Industries | |
# | |
# SPDX-License-Identifier: Unlicense | |
""" | |
Adapted from this answer: https://stackoverflow.com/a/27756701/507810 | |
""" | |
import displayio | |
import terminalio | |
from adafruit_display_text import label | |
from blinka_displayio_pygamedisplay import PyGameDisplay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Gauge | |
Turning the arc function into a guage that starts at angle 315 degrees | |
and sweeps 270 degrees | |
""" | |
import math | |
import displayio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Gauge | |
Turning the arc function into a guage that starts at angle 315 degrees | |
and sweeps 270 degrees | |
""" | |
import math | |
import displayio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import adafruit_bmp280 | |
import board | |
import displayio | |
import ulab | |
# Blank the screen. Scrolling text causes unwanted delays. | |
d = displayio.Group() | |
board.DISPLAY.show(d) |