Hello, i'm back from a long circuitpython session...
I'm playing with a small 128x128 SPI TFT display with a short generative prog
const s = require("Storage"); const largeur = 32; function ecrit() { console.log("écrit"); g.clear(); var start = getTime(); for (let y = 0; y<128; y+=largeur) { for (let x = 0; x<128; x+=largeur) { if (Math.random()>0.5) { g.setColor(1); g.fillRect(x,y,x+largeur,y+largeur); } } } print("dessine:",getTime()-start); g.flip(); //<--- Send to the display print("affiche:",getTime()-start); } var g; function onInit() { var colorPalette = new Uint16Array([0xFFF, 0]); // init spi var spi = new SPI(); spi.setup({mosi:B15 /* sda */, sck:B13 /* scl */}); g =require("ST7735").connect({ palette:colorPalette, spi:spi, dc:A7, cs:B10, rst:B1, padx:2, pady:3 // height : 160 // optional, default=128 }, setInterval(ecrit, 500) ); console.log("## mém. used: " + Math.round(process.memory().usage / process.memory().total * 100) + "% ##"); s.getFree(); }
But the display take 0.65sec to screen the picture drawn in .02s Is there a way to send faster to the display? and avoid image scanning?
regards
@Mrbbp started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello, i'm back from a long circuitpython session...
I'm playing with a small 128x128 SPI TFT display with a short generative prog
But the display take 0.65sec to screen the picture drawn in .02s
Is there a way to send faster to the display?
and avoid image scanning?
regards