Library implementing the Apple M0110(A) keyboard protocol to send keystrokes to a Macintosh 128K, Macintosh 512K, or Macintosh Plus. I wrote this library to use a USB keyboard with a Macintosh Plus.
USB to Apple M0110 Keyboard Adapter
The library needs to be initialized with a data pin and clock pin.
Mac 128k/512k/Plus Keyboard Pinout (Socket on Computer)
.---------.
| 1 2 3 4 | 1 GND
| | 2 Clock
| | 3 Data
'---___---' 4 5V
Example:
#include <M0110.h>
#define DAT_PIN 1
#define CLK_PIN 0
M0110 m0110(DAT_PIN, CLK_PIN);begin()allocates memory, configures pins, and enables interruptsend()disables interrupts, releases pins, and frees memorypress(key)presses and holds a single keyprint(characters)sends a string of keystrokesprintln(characters)sends a string of keystrokes followed by a return keyrelease(key)releases a single keyreleaseAll()releases all pressed keyswrite(key)presses and releases a single key