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
# boot.py | |
import usb_hid | |
# This is only one example of a gamepad descriptor. | |
# It may not suit your needs, or be supported on your host computer. | |
GAMEPAD_REPORT_DESCRIPTOR = bytes(( | |
0x05, 0x01, # Usage Page (Generic Desktop Ctrls) | |
0x09, 0x05, # Usage (Game Pad) | |
0xA1, 0x01, # Collection (Application) |
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 board | |
import busio | |
from adafruit_seesaw.seesaw import Seesaw | |
from adafruit_seesaw.digitalio import DigitalIO | |
from adafruit_seesaw.neopixel import NeoPixel | |
import struct | |
_ENCODER_BASE = 0x11 | |
_ENCODER_POSITION = 0x30 |
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
from adafruit_circuitplayground import cp | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keycode import Keycode | |
import usb_hid | |
import time | |
GREEN = (0,255,0) | |
RED = (255,0,0) | |
cp.pixels.brightness = .1 |
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 board | |
import digitalio | |
import analogio | |
import audioio | |
import audiocore | |
from wiichuck.nunchuk import Nunchuk | |
B_X = 0x01 | |
B_O = 0x02 |
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: 2019 Carter Nelson for Adafruit Industries | |
# | |
# SPDX-License-Identifier: MIT | |
""" | |
`adafruit_nunchuk` | |
================================================================================ | |
CircuitPython library for Nintendo Nunchuk controller | |
* Author(s): Carter Nelson | |
Implementation Notes |
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 alarm | |
import supervisor | |
import alarm | |
from adafruit_magtag.magtag import MagTag | |
# Change this to the hour you want to check the data at, for us its 8pm | |
# local time (eastern), which is 20:00 hrs | |
DAILY_UPDATE_HOUR = 20 |
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 John Furcean | |
# SPDX-License-Identifier: MIT | |
import board | |
import busio | |
from digitalio import DigitalInOut | |
import adafruit_requests as requests | |
import adafruit_esp32spi.adafruit_esp32spi_socket as socket | |
from adafruit_bitmap_font import bitmap_font | |
from adafruit_esp32spi import adafruit_esp32spi |
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 busio | |
import adafruit_tlv493d | |
import math | |
import displayio | |
import adafruit_displayio_ssd1306 | |
import terminalio | |
from adafruit_display_text import label |
NewerOlder