mirror of
https://github.com/smartykit/apple1.git
synced 2024-10-19 19:24:17 +00:00
e3c9c1f1a0
Firmware sources for Hi-Res Video controller (TV out) with examples
39 lines
941 B
C++
39 lines
941 B
C++
/*
|
|
* This is a simple example of the multi-mode tv out terminal which shows an emulation of the BBC Micro Mode 7 startup message
|
|
*
|
|
* Dave Curran 2013-09-28
|
|
*
|
|
* Arduino Terminal Library - Dave Curran (www.tynemouthsoftware.co.uk)
|
|
* Concept and Microcontroller Firmware - Daryl Rictor, Grant Searle
|
|
*
|
|
* The display microcontroller is wired as follows:
|
|
* pin 28 (SCL) ==> Display pin 28 (SCL)
|
|
* pin 27 (SDA) ==> Display pin 27 (SDA)
|
|
* Arduino Reset ==> Display pin 1 (Reset) - Reset (Optional)
|
|
*
|
|
* The two I2C data lines need to be pulled high to 5V via 2K2 resistors.
|
|
*
|
|
*/
|
|
|
|
#include <Terminal.h>
|
|
|
|
// Create a terminal in TWI mode
|
|
Terminal term;
|
|
|
|
void setup() {
|
|
// show startup messages
|
|
term.setFont(TERMINAL_FONT_40_BOLD_SINGLE);
|
|
term.printLine("BBC Computer 32K");
|
|
term.sendCRLF();
|
|
term.printLine("Acorn DFS");
|
|
term.sendCRLF();
|
|
term.printLine("BASIC");
|
|
term.sendCRLF();
|
|
term.print(">");
|
|
}
|
|
|
|
void loop() {
|
|
|
|
}
|
|
|