Skip to content

Instantly share code, notes, and snippets.

View MMcM's full-sized avatar

Mike McMahon MMcM

  • San Francisco, CA
View GitHub Profile
@MMcM
MMcM / adamnet.ino
Created August 22, 2021 01:49
Coleco Adam Keyboard as ASCII virtual serial port using Teensy 3.2
/*
* 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)

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.

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 August 30, 2020 23:56
HDS Concept AVT-APL+ Keyboard

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 May 29, 2023 05:23
CoreELEC on M92S PLUS

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.

@MMcM
MMcM / 00-README.md
Created January 16, 2016 17:43
klh10 hacks

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

@MMcM
MMcM / k505.el
Last active August 29, 2015 14:21
Logitec Kanji tablet interface
;;; -*- 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 August 29, 2015 14:10
Slick driver for FDB SQL Layer.
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
#!/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 November 24, 2014 21:38
Save OCD experiment for posterity
/**
* 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