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
""" | |
https://youtu.be/OCe36rvdrFI | |
""" | |
a = 0.0 | |
def setup(): | |
#size(640, 360, P3D) | |
fullScreen(P3D) |
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
/** | |
* Simple Read | |
* | |
* Slightly Modified from the Serial Example provided through the Ardunio IDE | |
* | |
* Read data from the serial port and change the color of a rectangle | |
* when a switch connected to a Wiring or Arduino board is pressed and released. | |
* This example works with the Wiring / Arduino program that follows below. | |
*/ |
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
''' | |
this python code will listen for serial messages, | |
and pass that trigger on to SonicPi (code below) as an OSC message, triggering a sound | |
''' | |
from pythonosc import osc_message_builder | |
from pythonosc import udp_client | |
import serial | |
import sys | |
import time |
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
// DHT Temperature & Humidity Sensor | |
// Unified Sensor Library Example | |
// REQUIRES the following Arduino libraries: | |
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library | |
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor | |
#include <Adafruit_Sensor.h> | |
#include <DHT.h> | |
#include <DHT_U.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
import os | |
from typing import ItemsView | |
from construct.core import Switch | |
from mgz import header, body | |
from pprint import pprint | |
tc_building_id = 0 | |
total_time_until_castle_click = 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
Video demo and explanation here: https://youtu.be/CYUlLaxY4Xs |
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
{ | |
"patcher" : { | |
"fileversion" : 1, | |
"appversion" : { | |
"major" : 8, | |
"minor" : 1, | |
"revision" : 11, | |
"architecture" : "x64", | |
"modernui" : 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
# this code will read the touch values from the ESP32 and echo them on the command line | |
# you could do something else more interesting with these values (e.g. visualize/sonify) | |
# pip install pyserial | |
import serial | |
# change the port as necessary by your OS | |
ser = serial.Serial('/dev/ttyS8', 115200) | |
while(True): |
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
// NeoPixel Ring simple sketch (c) 2013 Shae Erisson | |
// Released under the GPLv3 license to match the rest of the | |
// Adafruit NeoPixel library | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket | |
#endif | |
// Which pin on the Arduino is connected to the NeoPixels? |
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 bpy | |
import random | |
bpy.ops.object.select_all(action='SELECT') | |
bpy.ops.object.delete() | |
from math import sin, pi | |
bpy.ops.object.empty_add() | |
cameraPath = bpy.context.active_object | |
cameraPath.keyframe_insert("location", frame=1) |
OlderNewer