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
# Setup and IP addressing: | |
# 1) EVCC run on an NUC at 192.168.1.157 :7070 | |
# 2) HomeWizard P1 meter reader at 192.168.1.98 :80 | |
# 3) Shelly Pro EM - 50 as PV meter at 192.168.1.191 :80 | |
# 4) TeslaWallConnector as Wall Charger at 192.168.1.42 :80 | |
# 5) wimaha/TeslaBleHttpProxy as BLE proxy to control the Tesla at 192.168.1.157 :8080 | |
# 6) teslamate-org/teslamate with mqtt broker at 192.168.1.35 :1883 | |
network: | |
schema: http |
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
# Setup and IP addressing: | |
# 1) EVCC run on an NUC at 192.168.1.157 :7070 | |
# 2) HomeWizard P1 meter reader at 192.168.1.98 :80 | |
# 3) Shelly Pro EM - 50 as PV meter at 192.168.1.191 :80 | |
# 4) TeslaWallConnector as Wall Charger at 192.168.1.42 :80 | |
# 5) wimaha/TeslaBleHttpProxy as BLE proxy to control the Tesla at 192.168.1.157 :8080 | |
# 6) teslamate-org/teslamate with mqtt broker at 192.168.1.35 :1883 | |
network: | |
schema: http |
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
K.APPLICATION | |
K.Z | |
K.C | |
K.B | |
K.M | |
K.DOWN_ARROW | |
K.SPACEBAR | |
K.CAPS_LOCK | |
K.S | |
K.F |
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 supervisor | |
supervisor.set_next_code_file(None, reload_on_error=True) | |
import board | |
import audiocore | |
import audiobusio | |
import audiomixer | |
from digitalio import DigitalInOut, Direction, Pull | |
from adafruit_debouncer import Debouncer |
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: 2022 David Glaude (based on 2021 ladyada for Adafruit Industries) | |
# SPDX-License-Identifier: MIT | |
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries | |
# SPDX-FileCopyrightText: Copyright (c) 2021 Carter Nelson for Adafruit Industries | |
# | |
# SPDX-License-Identifier: Unlicense | |
# Simple demo of the VL53L1X distance sensor. | |
# Will print the sensed range/distance every second. |
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
"""Three button drum machine on Pico DV base""" | |
import time | |
import board | |
from digitalio import DigitalInOut, Direction, Pull | |
from adafruit_debouncer import Debouncer | |
import synthio | |
import audiobusio | |
import audiomixer |
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 all board pins. | |
import board | |
import busio | |
import time | |
import displayio | |
import adafruit_displayio_ssd1306 | |
import vectorio | |
displayio.release_displays() |
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 storage, usb_cdc | |
import board, digitalio | |
import usb_hid, usb_midi | |
# On the Macropad, pressing a key grounds it. You need to set a pull-up. | |
# If not pressed, the key will be at +V (due to the pull-up). | |
button = digitalio.DigitalInOut(board.KEY12) | |
button.pull = digitalio.Pull.UP | |
# Disable devices only if button is not pressed. |
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
"""Seeeduino XIAO RP2040: Build in RGB LED simultaniously as NeoPixel.""" | |
import time | |
import board | |
import neopixel | |
import digitalio | |
BLACK = (0, 0, 0) | |
RED = (255, 0, 0) | |
GREEN = (0, 255, 0) | |
BLUE = (0, 0, 255) |
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 usb_hid | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keycode import Keycode | |
import time | |
import random | |
# Initialize Keyboard | |
kbd = Keyboard(usb_hid.devices) | |
# Press and release CapsLock in loop. |
NewerOlder