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/env python | |
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
logger = logging.getLogger("main") | |
# Mambo | |
from Mambo import Mambo | |
import random |
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
HTTPPort 8090 | |
HTTPBindAddress 0.0.0.0 | |
MaxHTTPConnections 2000 | |
MaxClients 1000 | |
MaxBandwidth 6000 | |
CustomLog - | |
<Feed feed1.ffm> | |
File /tmp/feed1.ffm | |
FileMaxSize 5M |
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 time | |
import board | |
import pulseio | |
from adafruit_motor import servo | |
from adafruit_dht import DHT11 | |
from collections import namedtuple | |
StatusLED = namedtuple('StatusLED', ['r', 'g', 'b']) | |
led = StatusLED( | |
pulseio.PWMOut(board.RGB_LED_RED, frequency=5000, duty_cycle=65535), |
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 <FastLED.h> | |
const int NUM_LEDS = 25; | |
const int LED_PIN = 27; | |
static CRGB leds[NUM_LEDS]; | |
CRGB correct(CRGB c) { | |
// fix RGB order :( | |
return CRGB(c.g, c.r, c.b); | |
} |
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 <M5StickC.h> | |
void setup() { | |
M5.begin(); | |
M5.Lcd.setRotation(3); | |
Serial.begin(115200); | |
} | |
void renderText(TFT_eSprite& s, int font, const GFXfont* freeFont) { | |
s.setTextColor(WHITE); |
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/env python | |
import RPi.GPIO as GPIO | |
import subprocess | |
import time | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP) |
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
// ライブラリに The Midibus と G4P を追加すること | |
import themidibus.*; | |
import g4p_controls.*; | |
import processing.serial.*; | |
String midiOut = "JabaraMIDI"; // 出力先MIDIループバックデバイス名(loopMIDIでこの名前の仮想MIDIデバイスを作っておく) | |
String serialIn = "COM4"; // センサーデータを読み取る(Arduinoが接続されている)シリアルポート | |
int midiChannel = 0; // MIDIチャンネル(0-based) | |
int midiControlNumber = 7; // 送信するCC(コントロールチェンジ)のControl Number |