Hardware build instructions
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
Custom ladders can be used by tweaking colorMinValue and colorMaxValue
|
||||
*/
|
||||
|
||||
#define COMPOSITE_VIDEO_PIN 25 // hardcoded, this pin has a HW DAC
|
||||
|
||||
#include <ESP32Lib.h>
|
||||
#include <Ressources/Font6x8.h>
|
||||
#include <Ressources/CodePage437_8x8.h>
|
||||
@@ -43,7 +45,7 @@
|
||||
#define FONT CodePage437_8x8
|
||||
|
||||
//pin configuration for DAC
|
||||
const int outputPin = 25;
|
||||
const int outputPin = COMPOSITE_VIDEO_PIN;
|
||||
// A) B)
|
||||
CompositeGrayDAC videodisplay;
|
||||
// C) D)
|
||||
|
||||
@@ -9,6 +9,15 @@
|
||||
* and modified by Peter Scargill.
|
||||
*/
|
||||
|
||||
#define SERIAL_KBD_BAUDRATE 4800 // hardcoded LK201 baud rate
|
||||
#define SERIAL_KBD_RX_PIN 16 // hardcoded in Serial2
|
||||
#define SERIAL_KBD_TX_PIN 17 // hardcoded in Serial2
|
||||
|
||||
#define SERIAL_TTY_BAUDRATE 9600 // configurable, depends on the TTY
|
||||
#define SERIAL_TTY_CONFIG SERIAL_8N1 // configurable, depends on the TTY
|
||||
#define SERIAL_TTY_RX_PIN 18 // configurable
|
||||
#define SERIAL_TTY_TX_PIN 19 // configurable
|
||||
|
||||
#include <SPI.h>
|
||||
|
||||
#include <Adafruit_GFX.h>
|
||||
@@ -110,14 +119,12 @@ void setup() {
|
||||
Serial.println("Running!");
|
||||
|
||||
// TTY host
|
||||
SerialTty.begin(9600, SERIAL_8N1, 18, 19, false, 100);
|
||||
SerialTty.begin(SERIAL_TTY_BAUDRATE, SERIAL_TTY_CONFIG, SERIAL_TTY_RX_PIN, SERIAL_TTY_TX_PIN, false, 100);
|
||||
|
||||
// LK201 keyboard connected to pins 16 and 17
|
||||
SerialKbd.begin(4800);
|
||||
SerialKbd.begin(SERIAL_KBD_BAUDRATE);
|
||||
|
||||
display.setup();
|
||||
//uint16_t tftID = tft.readID();
|
||||
//tft.begin(tftID);
|
||||
|
||||
input_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user