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.
You'll need a single RCA Connector
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);
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:
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:
This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.