This file contains hidden or 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: 2023 Neradoc | |
# SPDX-License-Identifier: MIT | |
"""Show text from the web page on a display""" | |
import board | |
import json | |
import mdns | |
import microcontroller | |
import socketpool | |
import time | |
import traceback |
This file contains hidden or 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
from math import ceil | |
from adafruit_led_animation.animation import Animation | |
from adafruit_led_animation.color import BLACK, calculate_intensity | |
class CometsChase(Animation): | |
""" | |
Chase pixels in one direction in a single color, like a theater marquee sign. | |
But with comets. |
This file contains hidden or 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 asyncio | |
import click | |
import discotool | |
import os | |
import shutil | |
import subprocess | |
current_boards = [] | |
def read_board_id(board): |
This file contains hidden or 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
# This file is part of the standard library of Pycopy project, minimalist | |
# and lightweight Python implementation. | |
# | |
# https://github.com/pfalcon/pycopy | |
# https://github.com/pfalcon/pycopy-lib | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2018-2020 Paul Sokolovsky | |
# |
This file contains hidden or 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
from math import ceil | |
from adafruit_led_animation.animation import Animation | |
from adafruit_led_animation.color import BLACK, calculate_intensity | |
class CometsChase(Animation): | |
""" | |
Chase pixels in one direction in a single color, like a theater marquee sign. | |
But with comets. |
This file contains hidden or 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 Kattni Rembor for Adafruit Industries | |
# | |
# SPDX-License-Identifier: MIT | |
""" | |
`adafruit_led_animation.group` | |
================================================================================ | |
Animation group helper for CircuitPython helper library for LED animations.. |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 2 in line 2.
This file contains hidden or 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
2022-08-09;Hello this is the first line. | |
2015-10-21;This is back to the future day. | |
2042-01-01;Let's add a third line, for the demo. |
This file contains hidden or 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 board | |
import time | |
import uiclock_lib as uiclock | |
# timezone offset in seconds (fomr UTC) | |
TZ_OFFSET = 3600 * 2 | |
current_time = None | |
def update_time(text_label): |
This file contains hidden or 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
from board import * | |
# on-board default SPI for SD card | |
SCK = GP10 | |
MOSI = GP11 | |
MISO = GP12 | |
SD_CS = GP15 | |
# alternate SD card pins names | |
SD_CMD = GP11 | |
SD_DAT0 = GP12 | |
SD_DAT1 = GP13 |