Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike McMahon MMcM

  • San Francisco, CA
View GitHub Profile
@MMcM
MMcM / adamnet.ino
Created Aug 22, 2021
Coleco Adam Keyboard as ASCII virtual serial port using Teensy 3.2
View adamnet.ino
/*
* Wiring for Teensy3.2:
* Teensy 1(TX1) -- RJ 1
* Teensy 2 -- RJ 2 (optional)
* Teensy GND -- RJ 3,4,5
* Teensy Vin -- RJ 6
*
* Note that a real Coleco keyboard cable is reversed.
* (E.g., https://raw.githubusercontent.com/Kalidomra/AdamNet-Drive-Emulator/master/Connection%20Diagram.jpg)
View 00-readme.md

ADDS Viewpoint A2

The ASCII keyboard for an ADDS Terminal from 1983.

Pictures

Hardware

The keyboard communicates using a special serial protocol. The keyboard is powered with 12VDC.

View mpconfigboard.mk
USB_VID = 0x239A
USB_PID = 0x8058
USB_PRODUCT = "Serpente"
USB_MANUFACTURER = "arturo182"
CHIP_VARIANT = SAMD21E18A
CHIP_FAMILY = samd21
SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICE_COUNT = 1
@MMcM
MMcM / 00-readme.md
Last active Aug 30, 2020
HDS Concept AVT-APL+ Keyboard
View 00-readme.md

HDS Concept AVT-APL+ Keyboard

A Keytronics foam and foil keyboard for an APL capable terminal from 1984.

Protocol

The keyboard just sends idle low, 9600 baud ASCII, with special codes for function keys. It is therefore rather impractical to have it implement a USB keyboard.

@MMcM
MMcM / 00-README.md
Last active Feb 25, 2019
CoreELEC on M92S PLUS
View 00-README.md

A cheap Android TV Box from a few years ago.

The standard CoreELEC works with gxm_q200_2g, except the clock and remote.

The clock itself works as an m82, but not the dots.

View 00-README.md

Files from 2003 that were in Comcast before they discontinued PWP.

@MMcM
MMcM / k505.el
Last active Aug 29, 2015
Logitec Kanji tablet interface
View k505.el
;;; -*- Mode: Emacs-Lisp; coding:shift_jis -*-
;;; Logitec K-505 Kanji tablet (漢字入力装置) interface for XEmacs.
(provide 'k505)
(if (string-match "XEmacs" emacs-version)
(progn
(defun k505-string-bytes (str)
@MMcM
MMcM / FDBSQLDriver.scala
Last active Aug 29, 2015
Slick driver for FDB SQL Layer.
View FDBSQLDriver.scala
package com.foundationdb.slick.driver
import java.sql.{PreparedStatement, ResultSet}
import java.util.UUID
import scala.slick.ast._
import scala.slick.lifted._
import scala.slick.driver.JdbcDriver
import scala.slick.jdbc.JdbcType
import scala.slick.jdbc.meta.MTable
import scala.slick.model.Model
View hermitage.sh
#!/bin/bash
tmux kill-session -t SQL || true
tmux new-session -d -n SQL -s SQL "fdbsqlcli test | tee /tmp/SQL0.out"
tmux split-window -t SQL "fdbsqlcli test | tee /tmp/SQL1.out"
count_prompts()
{
grep "=>" /tmp/SQL$1.out | wc -l
}
@MMcM
MMcM / OCD.java
Created Nov 24, 2014
Save OCD experiment for posterity
View OCD.java
/**
* Copyright (C) 2009-2013 FoundationDB, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of