Arduino Mini Pro + ITDB02-18SP (ST7735S)#include <Pixels_SPIhw.h> // Software SPI: Pixels_SPIsw.h
#include <Pixels_Antialiasing.h> // optional
#include <Pixels_ST7735.h>
Pixels pxs(128, 160);
void setup() {
pxs.setSpiPins(13, 11, 10, 7 ,9);
pxs.init();
...
}
uText + UTFT demo:#include <UTFT.h>
#include <uText.h>
extern prog_uchar Eurostile13a[494] PROGMEM;
UTFT utft(TFT01_18SP,11,13,10,7,9);
uText utext(&utft, 160, 128);
void setup()
{
utft.InitLCD();
utft.clrScr();
utft.setColor(255, 0, 0);
utft.fillRect(0, 0, 319, 13);
utext.setBackground(0, 0, 0);
utext.setForeground(255, 128, 255);
utext.setFont(Eurostile13a);
utext.print(50, 50, "Pixels Test");
utft.setColor(64, 64, 64);
utft.fillRect(10, 26, 19, 39);
}
void loop()
{
delay(1000);
}
// int[] Eurostile13a = { //:Java
prog_uchar Eurostile13a[494] PROGMEM = { //:Wiring
0x5A,0x46,0x02,0x0F,0x0F,0x00,0x54,0x00,0x34,0x09,0x80,0x01,0x01,0x03,0x30,0x4B,0x81,0x2F,0x4B,0x81,
0x2F,0x4B,0x81,0x2E,0x3E,0x3E,0x3E,0x3E,0x3E,0x3E,0x3E,0x3E,0x3E,0x3E,0x3E,0x8E,0x20,0x2B,0x2B,0x2B,
0x2B,0x2B,0x2B,0x2B,0x2B,0x2B,0x2B,0x2B,0x81,0x2F,0x4B,0x81,0x2F,0x4B,0x81,0x2F,0x4B,0x00,0x20,0x00,
0x08,0x05,0x05,0x00,0x05,0x00,0x74,0x00,0x3D,0x06,0x80,0x02,0x00,0x43,0x08,0x31,0x48,0x26,0x04,0x04,
0x00,0x03,0x04,0x04,0x04,0x04,0x04,0x10,0x2E,0x41,0x37,0x2C,0x2C,0x05,0x22,0x2C,0x2C,0x2C,0x2C,0x2B,
0x1A,0x0A,0x44,0x08,0x31,0x45,0x3E,0x02,0x3C,0x43,0x08,0x31,0x43,0x3E,0x2C,0x1B,0x0E,0x44,0x22,0x38,
0x43,0x3C,0x0A,0x1A,0x34,0x41,0x00,0x65,0x00,0x52,0x09,0x00,0x05,0x00,0x41,0x39,0x16,0x07,0x01,0x07,
0x13,0x35,0x42,0x15,0x0F,0x31,0x38,0x33,0x14,0x0E,0x41,0x3F,0x01,0x2D,0x43,0x34,0x81,0x3D,0x3A,0x81,
0x2C,0x36,0x36,0x36,0x31,0x81,0x37,0x36,0x81,0x07,0x08,0x08,0x08,0x08,0x08,0x35,0x3A,0x81,0x34,0x46,
0x3E,0x00,0x2F,0x43,0x3B,0x19,0x39,0x41,0x0F,0x16,0x3D,0x42,0x24,0x00,0x3C,0x41,0x33,0x0D,0x01,0x05,
0x03,0x05,0x25,0x44,0x3F,0x39,0x3C,0x43,0x00,0x73,0x00,0x4C,0x09,0x00,0x05,0x01,0x41,0x26,0x0A,0x03,
0x01,0x08,0x1D,0x3E,0x3A,0x00,0x1F,0x37,0x39,0x33,0x04,0x24,0x33,0x81,0x36,0x43,0x2A,0x2D,0x3B,0x00,
0x1D,0x3B,0x3F,0x44,0x26,0x08,0x81,0x00,0x05,0x1C,0x3A,0x43,0x3D,0x3A,0x32,0x0B,0x20,0x32,0x11,0x3F,
0x43,0x1D,0x0E,0x34,0x81,0x2B,0x42,0x3C,0x0B,0x13,0x41,0x1D,0x03,0x04,0x05,0x00,0x0C,0x34,0x42,0x3F,
0x3B,0x39,0x3D,0x42,0x00,0x50,0x00,0x54,0x0B,0x01,0x01,0x00,0x09,0x84,0x00,0x06,0x13,0x36,0x41,0x09,
0x1B,0x36,0x36,0x36,0x36,0x30,0x10,0x11,0x41,0x09,0x20,0x45,0x2D,0x00,0x3F,0x09,0x20,0x45,0x33,0x81,
0x3A,0x09,0x20,0x45,0x34,0x81,0x38,0x09,0x20,0x45,0x2C,0x00,0x3E,0x09,0x1B,0x35,0x35,0x35,0x32,0x2A,
0x0B,0x10,0x41,0x09,0x85,0x03,0x12,0x36,0x41,0x09,0x1E,0x3C,0x3C,0x3C,0x3D,0x44,0x09,0x20,0x48,0x09,
0x20,0x48,0x09,0x20,0x48,0x09,0x20,0x48,0x00,0x6C,0x00,0x22,0x03,0x01,0x01,0x00,0x05,0x2C,0x05,0x2C,
0x05,0x2C,0x05,0x2C,0x05,0x2C,0x05,0x2C,0x05,0x2C,0x05,0x2C,0x05,0x2C,0x05,0x2C,0x05,0x2C,0x05,0x2C,
0x05,0x2C,0x00,0x78,0x00,0x39,0x07,0x80,0x05,0x01,0x25,0x3E,0x45,0x38,0x11,0x0C,0x09,0x30,0x43,0x26,
0x03,0x11,0x3C,0x1E,0x02,0x19,0x34,0x11,0x05,0x28,0x43,0x36,0x06,0x81,0x0A,0x3A,0x43,0x2F,0x0B,0x0B,
0x22,0x04,0x11,0x37,0x41,0x18,0x02,0x21,0x3E,0x41,0x39,0x14,0x02,0x22,0x17,0x36,0x45,0x2A,0x05,0x00,
0x69,0x00,0x1F,0x03,0x01,0x01,0x00,0x05,0x2C,0x29,0x38,0x44,0x0C,0x2E,0x05,0x2C,0x05,0x2C,0x05,0x2C,
0x05,0x2C,0x05,0x2C,0x05,0x2C,0x05,0x2C,0x05,0x2C,0x00,0x00,0x00,0x00,};