Skip to content

Instantly share code, notes, and snippets.

@psmay
psmay / SextetStreamStdoutTest.java
Created October 16, 2014 21:01
Java-based SextetStreamStdoutTest
package us.hfgk.exp.sextetstream.demo;
import java.awt.BorderLayout;
import java.awt.LayoutManager;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.io.IOException;
import javax.swing.JFrame;
@psmay
psmay / SextetStreamStdinTest.pl
Last active January 18, 2019 09:21
SextetStreamStdinTest to demonstrate that my StepMania SextetStream driver is functioning
#! /usr/bin/perl
use warnings;
use strict;
use 5.010;
use Carp;
# 1: Use arrow display (dance/techno)
# 0: Use generic display (other games)
my $use_dance_display = 1;

Keybase claim

I hereby claim:

  • I am psmay on github.
  • I am psmay (https://keybase.io/psmay) on keybase.
  • I have a public key whose fingerprint is A0E6 3851 9ABB 112E 7303 DD91 7A2E 91FB 7885 DAFC
@psmay
psmay / gaming-the-had-projects-front-page.pl
Last active August 29, 2015 14:02
What it http://hackaday.io/project/695 might look like if I'd written it
#!/usr/bin/perl
use warnings;
use strict;
use 5.010;
use WWW::Mechanize;
sub get_description {
my $count = shift;
my $padded_count = sprintf("%05d", $count);
@psmay
psmay / gist:6462577
Last active December 22, 2015 10:59
Ideas for piculear serial protocol

Limbo

When the programmer is first turned on, it is in Limbo mode. This mode provides commands to switch to all of the other modes of the programmer. Additionally, it is specified such that the firmware may optionally implement human-enterable commands in the same mode. Host software should not assume the presence of such commands, but if provided they are available via serial monitor for testing purposes.

Each command in Limbo mode must be entered at the beginning of a line. Entry into Limbo mode marks the beginning of a line, as does any byte 0x0A (\n) or 0x0D (\r).

Minimal command set supported:

  • ``: Empty command (\n or `\r` at beginning of line). These are no-ops and the programmer does not reply.
  • \x1BMe\n: Switch to extended mode. The programmer replies ok\n\n before switching.