sábado, 21 de outubro de 2017

DISPLAY NOKIA Arduino Mega 2560

Arduino MEGA 2560

Default:
int RESET = 3;
int CS = 4; // CE, CS
int DC = 5;
int DIN = 6;
int CLK = 7;
Adafruit_PCD8544 display1 = Adafruit_PCD8544(CLK, DIN, DC, CS, RESET);

Default com comunicação mais rápida:
int RESET = 3;
int CS = 4; // CE, CS
int DC = 5;
int DIN = 11;
int CLK = 13;
Adafruit_PCD8544 display1 = Adafruit_PCD8544(CLK, DIN, DC, CS, RESET);

Multidisplay:
int d1_RESET = 23;
int d1_CS = 25; // CS/CE
int d1_DC = 27;
int d1_DIN = 29; //6
int d1_CLK = 31; //7

Adafruit_PCD8544 display1 = Adafruit_PCD8544(d1_CLK, d1_DIN, d1_DC, d1_CS, d1_RESET);

int d2_RESET = 22;
int d2_CS = 24; // CS/CE
int d2_DC = 26;
int d2_DIN = 28; //6
int d2_CLK = 30; //7

Adafruit_PCD8544 display2 = Adafruit_PCD8544(d2_CLK, d2_DIN, d2_DC, d2_CS, d2_RESET);

Display ERM240128SYG-2 240x128

4.7"Graphic LCD 240x128 T6963

/* display Arduino mega 2560
 *  1 FG   GND 
 *  2 GND  GND
 *  3 VDD  5V
 *  4 V0   POT(2)
 *  5 /WR   6
 *  6 /RD   5
 *  7 CE   GND
 *  8 C/D   3
 *  9 RST   2
 * 10 D0   22
 * 11 D1   23
 * 12 D2   24
 * 13 D3   25
 * 14 D4   26
 * 15 D5   27
 * 16 D6   28
 * 17 D7   29
 * 15 FS1  GND
 * 19 VEE  POT(3)
 * 20 LEDA 3.3V
 * 21 LEDK GND
 *         POT(1) GND
 */

#define d0    22
#define d1    23
#define d2    24
#define d3    25
#define d4    26
#define d5    27
#define d6    28
#define d7    29
#define reset  2
#define cd     3
#define ce     4
#define rd     5
#define wr     6


U8GLIB_T6963_240X128 u8g(d0, d1, d2, d3, d4, d5, d6, d7, ce, cd, wr, rd, reset);

Lentidão utilizando a biblioteca U8GLIB.

================================================================