PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Hardware configuration examples to run Pixels
   PostPosted: 07 Sep 2014, 15:03 
To be continued...


  Subject: Arduino Duemilanove / UNO + Robot LCD (ILI9163)
   PostPosted: 07 Sep 2014, 15:13 
Arduino Duemilanove / UNO + Robot LCD (ILI9163)


+5V -> +5V
MISO -> pin 12
SCK -> pin 13
MOSI -> pin 11
LCD CS -> pin 10
SD CS -> pin 4
D/C -> pin 9
RESET -> pin 8
BL -> +5V
GND -> GND

#include <Pixels_SPIhw.h> // Software SPI: Pixels_SPIsw.h
#include <Pixels_Antialiasing.h> // optional
#include <Pixels_ILI9163.h>

Pixels pxs(160, 128);

...
	void setup() {
		pxs.setSpiPins(13, 11, 10, 8, 9);
		pxs.init();


Attachments:
Uno_TFTsm.png
Uno_TFTsm.png [ 107.62 KiB | Viewed 5806 times ]
  Subject: Arduino Mega + Robot LCD (ILI9163)
   PostPosted: 07 Sep 2014, 15:17 
Arduino Mega + Robot LCD (ILI9163)

+5V -> +5V
MISO -> 50 on Mega 2560 (Miso on ADK)
SCK -> 52 on Mega 2560 (Sck on ADK)
MOSI -> 51 on Mega 2560 (Mosi on ADK)
LCD CS -> pin 10
SD CS -> pin 4
D/C -> pin 9
RESET -> pin 8
BL -> +5V
GND -> GND

#include <Pixels_SPIhw.h> // Software SPI: Pixels_SPIsw.h  
#include <Pixels_Antialiasing.h> // optional
#include <Pixels_ILI9163.h>

Pixels pxs(128, 160);
...
	void setup() {
		pxs.setSpiPins(52, 51, 10, 8, 9);
		pxs.init();


Attachments:
MegaTFT.png
MegaTFT.png [ 118.47 KiB | Viewed 5775 times ]
  Subject: Arduino Mini Pro + ITDB02-18SP (ST7735S)
   PostPosted: 07 Sep 2014, 15:31 
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,};


Attachments:
bread001.png
bread001.png [ 32.1 KiB | Viewed 5772 times ]
  Subject: Teensy 3.1 + ITDB02-18SP (ST7735S)
   PostPosted: 07 Sep 2014, 15:43 
Teensy 3.1 + 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, 5, 2);
	pxs.init();
	...
}


uText + UTFT:

#include <UTFT.h>
#include <uText.h>

extern prog_uchar Eurostile13a[494] PROGMEM;
	
UTFT utft(TFT01_18SP,11,13,10,5,2); 

uText utext(&utft, 160, 128);

...


Attachments:
bread002.png
bread002.png [ 24.32 KiB | Viewed 5772 times ]
  Subject: Re: Hardware configuration examples to run Pixels
   PostPosted: 17 Sep 2014, 20:31 
Teensy 3.1 + ElecFreaks TFT2.2SP Shield (ILI9341)

As Teensy is 3.3V device and the ElecFreaks shield requires 5V, for the test configuration we used an additional power supply (UBB->breadboard) to provide +5V to the corresponding VCC pin. The rest of interface connections work fine with 3.3V signals, despite the shield operates 5V logic.

(By default the shield controls SD card with the standard hardware SPI pins D10-D13)

#include <Pixels_SPIhw.h>  // Also works well with software SPI: Pixels_SPIsw.h
#include <Pixels_Antialiasing.h> // optional
#include <Pixels_ILI9341.h>

Pixels pxs(240, 320);

void setup() {
	pxs.setSpiPins(13, 11, 10, 5, 6);
	pxs.init();
	...
}


Attachments:
shield_schematics.png
shield_schematics.png [ 11.67 KiB | Viewed 5750 times ]
bread004.png
bread004.png [ 98.17 KiB | Viewed 5740 times ]

[Reply]     [ 6 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share