Skip to content

Instantly share code, notes, and snippets.

@devdsp
devdsp / dmx.py
Last active August 29, 2015 14:09
simple ftdi-based DMX script in pthon
#!/usr/bin/python
import json
from ftdi import *
import math
import time
usleep = lambda x: time.sleep(x/1000000.0)
def start():
#!/usr/bin/perl
use strict;
use warnings;
use AnyEvent::I3 qw(:all);
my $i3 = i3();
$i3->connect->recv or die "Error connecting to i3";
my $output = undef;

Keybase proof

I hereby claim:

  • I am devdsp on github.
  • I am devdsp (https://keybase.io/devdsp) on keybase.
  • I have a public key whose fingerprint is 4FAB 9EF0 22FE 9941 C516 C179 D948 E348 19E3 6475

To claim this, I am signing this object:

#define ENC_MASK B10000100
#define ENC_STATE0 B00000000
#define ENC_STATE1 B10000000
#define ENC_STATE2 B10000100
#define ENC_STATE3 B00000100
const byte PIN_ENC_A = 2;
const byte PIN_ENC_B = 7;
const byte PIN_ENC_P = 8;