Skip to content

Instantly share code, notes, and snippets.


Steve Berrick griv

View GitHub Profile
View test_phototransistor.ino
// phototransistor test
int pt = A0;
int led = 11;
int val = 0;
void setup() {
// analog in
pinMode(pt, INPUT);
griv / ESP8266_OSC_Serial_Bridge.ino
Last active Mar 2, 2018
ESP8266 OSC -> Serial Bridge
View ESP8266_OSC_Serial_Bridge.ino
ESP8266 Bridge OSC -> Serial
Receives OSC (Port 8888), and passes it through to Serial
Have been using this with Teensy 3.2 (Serial 1)
griv / SerialReflector.ino
Created Feb 25, 2018
Use Teensy to program ESP8266
View SerialReflector.ino
void setup() {
Serial.begin(115200); // Serial port for connection to host
Serial1.begin(115200); // Serial port for connection to serial device
void loop() {
if (Serial1.available()) {
View artsaction.js
* arts action! by pvi collective
* adds content to end of <body> to cover site as a protest to arts funding cuts to independent artists.
* checks local time and only shows on national day of action, june 17th 2016
* author: steve berrick <>
griv / Dbg.cs
Created Apr 29, 2015
Simple log to file for Unity3D apps. Designed for long running standalone application, logs a file per run in year / month folders.
View Dbg.cs
using UnityEngine;
using System;
using System.Collections;
using System.Diagnostics;
using System.IO;
// Taken from here:
// and adapted to my needs - per run log files, in year / month folders
// Steve Berrick <>

Keybase proof

I hereby claim:

  • I am griv on github.
  • I am grivvr ( on keybase.
  • I have a public key whose fingerprint is 64F0 BE71 D18A 7E0C FFDA 9883 1FA9 BC59 0784 8CF5

To claim this, I am signing this object:

griv / SaveFrames.cs
Last active Aug 29, 2015
Renders Unity Camera.main to png images.
View SaveFrames.cs
using UnityEngine;
using System.Collections;
using System;
public class SaveFrames : MonoBehaviour {
public bool saveFrames = false;
public bool saveFrameHotKey = false;