Skip to content

Instantly share code, notes, and snippets.

View matiaspl's full-sized avatar

Mateusz Starzak matiaspl

  • Amagi & Lodz University of Technology
  • Lodz, Poland
View GitHub Profile
@matiaspl
matiaspl / sync_bar_gen.sh
Last active February 21, 2024 13:43
moving bar testcard generator for synchronization testing based on timestamps
#!/bin/bash
fps=25
delay=2
width=640
height=360
bar_width=20
bar_height=$((height / 2))
bar_speed=4
@matiaspl
matiaspl / midi_button.py
Last active October 8, 2024 14:04
Simple MIDI button (foot switch) for the WaveShare RP2040-Zero (Raspbery Pi Pico clone) done using CircuitPython. The idea behind it was to have a super inexpensive physical trigger for use inside vMix, that would allow the sign language interpreter to decide when he/she wants to be visible on screen (a task that would be otherwise delegated to …
import board
import digitalio
import busio
import usb_midi
import adafruit_midi
import neopixel
from adafruit_debouncer import Debouncer
from adafruit_midi.note_off import NoteOff
from adafruit_midi.note_on import NoteOn
@matiaspl
matiaspl / acer_projector_control.sh
Last active October 9, 2025 09:57
Power on/off an Acer projector using a USB-to-RS232C dongle.
#!/bin/ash
# Serial port device (adjust this based on your system)
SERIAL_PORT="/dev/ttyUSB0"
# Function to configure the serial port
configure_serial() {
if [ ! -c "$SERIAL_PORT" ]; then
echo "Error: $SERIAL_PORT is not a valid character device"
exit 1