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
#!/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/ | |
# |
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
<harmony print-frame="no"> | |
<root> | |
<root-step text="">C</root-step> | |
</root> | |
<kind text="N.C.">none</kind> | |
</harmony> |
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
/* | |
* 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. | |
* |
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
#include <algorithm> | |
#include <string> | |
#include <vector> | |
#include <iostream> | |
template <typename String, typename OutputIt> | |
void components_separated_by_string(const String & string, const String & separator, OutputIt out) | |
{ | |
typename String::size_type comp_start=0, comp_end; | |
while ((comp_end = string.find(separator, comp_start)) != String::npos) { |
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
#include <SPI.h> | |
//Add the SdFat Libraries | |
#include <SdFat.h> | |
#include <SdFatUtil.h> | |
//and the MP3 Shield Library | |
#include <SFEMP3Shield.h> | |
/** |
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
// | |
// Light show "Trittst im Morgenrot daher" | |
// | |
enum { | |
kFlagRed1 = 2, | |
kFlagRed2, | |
kFlagRed3, | |
kFlagWhite, | |
kMountainBlue, |
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
#!/usr/bin/ruby | |
class Array | |
def self.of(cclass) | |
return Class.new(Array) do | |
const_set :NESTED, cclass | |
def self.new(size, *args) | |
super(size) do |idx| | |
self::NESTED.new(*args) | |
end |
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
// | |
// 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> |
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
#!/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" |
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
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 |
NewerOlder