TV Out

Espruino provides the ability to output black and white PAL Television or VGA signals via the TV Module. This capability is currently only available in 'official' Espruino boards.

Composite (PAL)

Wiring

You'll need a single RCA Connector

Composite PAL Connections

Software

var g = require('tv').setup({ type : "pal",
  video : A7, // Pin - SPI MOSI Pin for Video output (MUST BE SPI1)
  sync : A6, // Pin - pin to use for video sync
  width : 384,
  height : 270, // max 270
});

g.drawLine(0,0,100,100);

VGA

Wiring

The VGA specification requires that the video signal is 0.7v peak-to-peak (Hsync and Vsync are 5v). The signals that come out of Espruino will be 3.3v peak to peak, so if you don't want to risk damage your VGA display then you will need to use resistors to reduce the voltage of the video (monitors will be fine with the 3.3v Hsync and Vsync signals).

You'll need:

Connect:

VGA Connections

Software

Full resolution:

var g = require('tv').setup({ type : "vga",
  video : A7, // Pin - SPI MOSI Pin for Video output (MUST BE SPI1)
  hsync : A6, // Pin - pin to use for video horizontal sync
  vsync : A5, // Pin - pin to use for video vertical sync
  width : 220,
  height : 480,
  repeat : 1, // amount of times to repeat each line
});

g.drawLine(0,0,100,100);

Or line doubling:

var g = require('tv').setup({ type : "vga",
  video : A7, // Pin - SPI MOSI Pin for Video output (MUST BE SPI1)
  hsync : A6, // Pin - pin to use for video horizontal sync
  vsync : A5, // Pin - pin to use for video vertical sync
  width : 220,
  height : 240,
  repeat : 2, // amount of times to repeat each line
});

g.drawLine(0,0,100,100);

Note:

Using TV Out

This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.