GitHub - mogrinz/AMT630A: An Arduino Library for working with the AMT630A chip
Arduino/ESP32 library for controlling the hardware on-screen display (OSD) engine in AMT630A-based composite-video LCD monitor boards.
Spots Arduino/ESP32 library for controlling the hardware on-screen display (OSD) engine in AMT630A-based composite-video LCD monitor boards.

The library exposes the AMT630A's five hardware OSD windows as a practical Arduino API for text, custom glyphs, 16-color 4bpp bitmaps, palette animation, opacity/video blending, scaling, blink regions, and window movement. It also includes a Python image converter and optional automation for entering the hidden factory menu on one hardware-tested three-button monitor firmware.
Hardware status: This project is based on hardware testing and reverse engineering of real AMT630A monitor boards. AMT630A products are not all guaranteed to use the same firmware, panel timing, keypad circuit, or exposed I2C connections. Features marked as hardware/firmware-specific should be treated accordingly.
Hardware status: This project is based on hardware testing and reverse engineering of real AMT630A monitor boards. AMT630A products are not all guaranteed to use the same firmware, panel timing, keypad circuit, or exposed I2C connections. Features marked as hardware/firmware-specific should be treated accordingly. Five independently positioned AMT630A OSD windows. LargeFont (16x22 cell geometry) and SmallFont (10x16 cell geometry). Text drawing, foreground/background colors, centered strings, bars, rectangles, and raw glyph IDs. Shared 512-cell Index RAM allocation and inspection helpers. LargeFont custom glyphs stored in Font RAM. 4bpp bitmap resources using 16x22 LargeFont-compatible tiles. 4096-word / 8192-byte Font RAM bitmap allocator. Global 16-entry bitmap palette, RGB helpers, palette-0 transparency, and palette animation.
Global OSD/video blending, opacity, and brightness controls. Per-window 1x-4x horizontal and vertical scaling. Hardware blink-region support. Lightweight window movement and batch-update APIs.
Python GIF/PNG/JPEG/BMP-to-Arduino bitmap converter with RGB444-aware quantization, shared palettes, memory limits, and preview output. LargeFont and SmallFont character-set browser examples. Optional GPIO-driven factory-menu keypad automation for compatible stock firmware. After this repository has been accepted into the Arduino Library Manager registry: Choose Sketch > Include Library > Manage Libraries... (or open Library Manager in Arduino IDE 2.x). Select the desired version and click Install. Download the release ZIP, then in Arduino IDE choose Sketch > Include Library > Add .ZIP Library... and select it.
Clone or copy the repository into the libraries directory of your Arduino sketchbook. Restart Arduino IDE if it was already open. The library communicates with the AMT630A over I2C. The default ESP32 pins used by begin() are:
Always connect grounds between the ESP32 and monitor electronics. Do not assume every AMT630A monitor exposes the same test pads, voltage levels, supply input, or keypad arrangement; verify your own board before connecting it. Custom pins and I2C clock can be supplied to begin(): Important stock-firmware / C6 ownership note
The AMT630A uses SYS register C6 to select whether the internal 8051 MCU or external I2C controls internal registers. On the hardware-tested monitor, the stock firmware periodically accesses internal video/decoder registers and normally expects MCU ownership. Repeatedly taking external ownership during normal stock-firmware operation was found to eventually freeze the complete display pipeline, including both OSD and live composite video.
The library still uses the external-I2C mechanism because it is how the OSD is controlled. On the tested three-button monitor, entering the hidden factory menu before sustained external OSD activity prevented the observed contention/freeze during long-duration testing. The EnterFactoryMode example automates that procedure using a 74HC4066 connected across the existing keypad switches.
Arduino/ESP32 library for controlling the hardware on-screen display (OSD) engine in AMT630A-based composite-video LCD monitor boards.
