Пример #1
0
    0x008000,
    0x00FFFF,
    0x0000FF,
    0xFF00FF,
    0xFA8072,
]
ledColourCount = len(ledColours)

logo_path = "shared/sw.png"
logo_height = 121
logo_width = 240

mute = False

# Setup
init()
neopix = Neopix()
ugfx_helper.init()
speaker.enabled(True)

####################
####################
####################

notes = [
    {
        "name": "G3",
        "midi": 55,
        "time": 1.5,
        "velocity": 0.6299212598425197,
        "duration": 0.1572916666666666
Пример #2
0
Similar to the default homescreen, but the
background is the pride flag.
"""

___name___         = "Pride"
___license___      = "MIT"
___categories___   = ["Homescreens"]
___dependencies___ = ["homescreen", "app"]


from app import restart_to_default
import ugfx
import homescreen


homescreen.init()
ugfx.clear(ugfx.html_color(0xFF0000))

# Used for placement around text
name_height = 55
info_height = 20

# Maximum length of name before downscaling
max_name = 8

# Orientation for other people to see
ugfx.orientation(90)

# Pride flag colours
colours = [0xE70000, 0xFF8C00, 0xFFEF00, 0x00811F, 0x0044FF, 0x760089]
Пример #3
0
"""Default homescreen

This is the default homescreen for the Tilda Mk4.
It gets automatically installed when a badge is
newly activated or reset.
"""

___name___ = "Homescreen (Default)"
___license___ = "GPL"
___categories___ = ["homescreen"]
___launchable___ = False
___bootstrapped___ = True

print("there")
import ugfx, homescreen

homescreen.init(color=0xe4ffdb)

ugfx.display_image(0, 0, "home_default/bg.gif")
ugfx.text(20, 20, homescreen.name(), ugfx.BLACK)