This is untested, but something like this.
From https://github.com/microsoft/ArduinoHidForWindows/blob/main/src/LampArrayReportDescriptor.h and https://learn.adafruit.com/adafruit-pixel-trinkey/hid-lamparray
| import time | |
| import usb_hid | |
| import adafruit_hid | |
| keyboard_hid = adafruit_hid.find_device(usb_hid.devices, usage_page=1, usage=6) | |
| print("waiting for LED commands from computer") | |
| while True: | |
| out_report = keyboard_hid.get_last_received_report() # out from computer | |
| if out_report: |
This is untested, but something like this.
From https://github.com/microsoft/ArduinoHidForWindows/blob/main/src/LampArrayReportDescriptor.h and https://learn.adafruit.com/adafruit-pixel-trinkey/hid-lamparray
| #!/bin/bash | |
| # | |
| # Create a small video clip of a podcast-like video on youtube. | |
| # 4 March 2026 - Tod Kurt / @todbot | |
| # | |
| # This script does the following: | |
| # - Download the video of the podcast | |
| # - Download the subtitles of the podcast video | |
| # - Create a copy of the entire video with the captions burned in | |
| # - Snip the specified section of that video with audio waveform overlay |
| // simple "HTTP by hand" in ESP-IDF | |
| // add "REQUIRES esp_wifi esp_netif nvs_flash" to CMakeLists.txt | |
| #include <string.h> | |
| #include <sys/socket.h> | |
| #include <netdb.h> // getaddrinfo() | |
| #include "esp_wifi.h" | |
| #include "esp_event.h" | |
| #include "esp_log.h" | |
| #include "nvs_flash.h" |
| # Default server configuration | |
| # | |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| root /var/www/html; | |
| # Add index.php to the list if you are using PHP | |
| index index.php index.html index.htm index.nginx-debian.html; |
| # circuitpython_font_play_code_simple.py -- playing w adafruit circuitpython-fonts | |
| # 8 Aug 2025 - @todbot / Tod Kurt | |
| # developed on a Lilygo T-Display S3 w/ ST7789 display in paralleldisplaybus mode | |
| # To use this, first install 'circup' and do what's described here: | |
| # https://github.com/adafruit/circuitpython-fonts/ | |
| # e.g.: | |
| # circup bundle-add adafruit/circuitpython-fonts # You only need to do this once | |
| # circup show | grep 48 | grep font # find fonts that are size 48 | |
| # circup install font_... # find a font you like & install it, like: | |
| # circup install font_raleway_medium_48 |
| #!/bin/bash | |
| # | |
| # kicad-diff-pcb -- Git diff for Kicad PCB layouts | |
| # 22 Jul 2025 - @todbot / Tod Kurt | |
| # | |
| # Install steps: | |
| # 1. Make sure `kicad-cli` is in your PATH | |
| # 2. Save this file somewhere in your PATH, I prefer "~/bin" | |
| # 3. Make this script executable: "chmod +x kicad-diff-pcb" | |
| # 4. Add the following to your ~/.gitconfig |
| # espnow-simple_hacky_receiver.py -- show ESPnow working broadcast on CircuitPython | |
| # 9 Jul 2025 - @todbot | |
| # tested on QTPY ESP32-S2 and FunHouse (ESP32-S2) | |
| import time | |
| import wifi | |
| import espnow | |
| # https://github.com/adafruit/circuitpython/issues/9380#issuecomment-2463013607 | |
| # hack to switch channel that is used for ESPNow | |
| # this takes just a few milliseconds, so doesn't waste a lot of power |