http://adafruit.com/products/358
with my breadboard 1284p project
So I wired
Code: Select all
Gnd --> GND
VCC --> 5v
RESET --> D0
D/C --> D3
CARDCS --> NONE
TFTCS --> D4
MOSI --> D5
SCK --> D7
MISO --> NONE
LITE --> VCC
this is the pin mapping for 1284p
Code: Select all
// ATMEL ATMEGA1284P
//
// +---\/---+
// (D 0) PB0 1| |40 PA0 (AI 0 / D24)
// (D 1) PB1 2| |39 PA1 (AI 1 / D25)
// INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D26)
// PWM (D 3) PB3 4| |37 PA3 (AI 3 / D27)
// PWM/SS (D 4) PB4 5| |36 PA4 (AI 4 / D28)
// MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D29)
// PWM/MISO (D 6) PB6 7| |34 PA6 (AI 6 / D30)
// PWM/SCK (D 7) PB7 8| |33 PA7 (AI 7 / D31)
// RST 9| |32 AREF
// VCC 10| |31 GND
// GND 11| |30 AVCC
// XTAL2 12| |29 PC7 (D 23)
// XTAL1 13| |28 PC6 (D 22)
// RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI
// TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO
// RX1/INT0 (D 10) PD2 16| |25 PC3 (D 19) TMS
// TX1/INT1 (D 11) PD3 17| |24 PC2 (D 18) TCK
// PWM (D 12) PD4 18| |23 PC1 (D 17) SDA
// PWM (D 13) PD5 19| |22 PC0 (D 16) SCL
// PWM (D 14) PD6 20| |21 PD7 (D 15) PWM
// +--------+
//
and i use adafruit labrary with this code...
Code: Select all
#define cs 4
#define dc 3
#define rst 0
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include <SPI.h>
Adafruit_ST7735 tft = Adafruit_ST7735(cs,dc,rst);
and I try with the example graphictest_highspeed
But unfortunately the display is white totally illuminated.
upload code is via a programmer. And the sketch is uploaded correctly. I modified the code to add in the loop a blinking LED and it works. Any idea? Where am I doing wrong? thanks
best regards
Marco