Skip to content

Instantly share code, notes, and snippets.

View microtherion's full-sized avatar

Matthias Neeracher microtherion

View GitHub Profile
@microtherion
microtherion / prusa_rtsp_upload
Created January 31, 2024 22:02
Linking an RTSP based camera (e.g. webcam) with unusable snapshots to Prusa Connect
#!/bin/sh
#
# prusa_rtsp_upload - Upload stills from an RTSP camera to Prusa Connect
#. Uses ffmpeg to take snapshots of the video feed, for cameras whose
#. snapshot URL produces low quality snapshots
#
# Copyright (C) 2024 Matthias Neeracher <microtherion@gmail.com>
# Licensed under CC-BY terms: https://creativecommons.org/licenses/by/4.0/
#
@microtherion
microtherion / MP3_Shield_RealtimeMIDI.ino
Created May 8, 2012 15:56
Playing Real Time MIDI through the Sparkfun MP3 Player Shield
/*
*
* File: MP3_Shield_RealtimeMIDI.ino
* Author: Matthias Neeracher
*
* This code is in the public domain, with the exception of the contents of sVS1053b_Realtime_MIDI_Plugin.
*
* The code is based on Nathan Seidle's Sparkfun Electronics example code for the Sparkfun
* MP3 Player and Music Instrument shields and and VS1053 breakout board.
*
<harmony print-frame="no">
<root>
<root-step text="">C</root-step>
</root>
<kind text="N.C.">none</kind>
</harmony>
/*
* Derived from Nathan Seidle's LED strip demo code
*
* You will need to connect 5V/Gnd from the Arduino (USB power seems to be sufficient).
*
* For the data pins, please pay attention to the arrow printed on the strip. You will need to connect to
* the end that is the begining of the arrows (data connection)--->
*
* The documented wire colors are very unreliable. Follow the labels printed on the LED strip.
*
//
// Demonstrate various behaviors for XBotMicro
//
// Matthias Neeracher: Derived from original XBotMicro demo4, rewritten in English,
// added pinouts for ATtiny X4/X5
// This code is licensed under the same conditions as the original XBotMicro demo code.
//
#include <Arduino.h>
#!/bin/sh -x
#
# Usage: Arduino-Crosspack /Applications/Arduino.app
#
AVR="$1/Contents/Resources/Java/hardware/tools/avr"
sudo rm -rf "$AVR"
sudo ln -s /usr/local/CrossPack-AVR "$AVR"
sudo codesign -fs - "$1"
ols_fwloader -f APP -P /dev/tty.usbXXXXX -W -w FPGAROM/logic_sniffer_3.07-Demon-Core.bit -t BIN
ols_fwloader -f BOOT -n -P /dev/tty.usbXXXXX -V -W -w PIC_firmware/OLSv1.firmware.v3.0.hex
sudo cp -r MacOSX_DiolanDeviceDriver/DiolanDeviceDriver.kext /System/Library/Extensions/
sudo kextutil /System/Library/Extensions/DiolanDeviceDriver.kext
sudo touch /System/Library/Extensions
@microtherion
microtherion / ols-fwloader-compile.sh
Last active December 16, 2015 22:09
Compiling ols-fwloader
git clone https://github.com/robots/ols-fwloader.git
cd ols-fwloader
autoreconf --install
./configure
make
@microtherion
microtherion / programmers.txt
Created February 18, 2013 17:39
Arduino IDE configuration file for Bus Pirate (put into hardware/buspirate folder in your sketch directory)
buspirate.name=Buspirate
buspirate.communication=serial
buspirate.protocol=buspirate