SkobyMobil:
Hallo,
neue oder alte Library?
!!!NOTE:
DO NOT! DO NOT! DO NOT update directly from the Arduino IDE.
You should know that the library you update directly from the Arduino IDE is not provided by us.
Maybe it is written by somebody else.
Please follow me: and do not update from Arduino IDE
Please download the new library from the google driver. TFT LCD Shield 3.2" w/ Touch Screen - Google Drive
All the four libraries in the folder of "Arduino library" must be put in the derectory of ../Arduino-1.xx/libraries, and then restart the IDE.
We have test the four examples in the derectory of D:\arduino-1.6.5-r2\libraries\MCUFRIEND_kbv\examples.
Gruß und Spaß
Andreas
Hello,
I encountered a color display problem
the colors were inverted
I was able to solve this problem by reversing the data
From "write16(color);"
To "write16(color^0xFFFF);"
MCUFRIEND_kbv.cpp 3 times:
void MCUFRIEND_kbv::pushColors(uint16_t * block, int16_t n, bool first)
{
uint16_t color;
CS_ACTIVE;
if (first) {
WriteCmd(_MW);
}
CD_DATA;
while (n-- > 0) {
color = *block++;
write16(color^0xFFFF);
}
CS_IDLE;
}
void MCUFRIEND_kbv::pushColors(uint8_t * block, int16_t n, bool first)
{
uint16_t color;
uint8_t h, l;
CS_ACTIVE;
if (first) {
WriteCmd(_MW);
}
CD_DATA;
while (n-- > 0) {
h = (*block++);
l = (*block++);
color = h << 8 | l;
write16(color^0xFFFF);
}
CS_IDLE;
}
void MCUFRIEND_kbv::pushColors(const uint8_t * block, int16_t n, bool first)
{
uint16_t color;
uint8_t h, l;
CS_ACTIVE;
if (first) {
WriteCmd(_MW);
}
CD_DATA;
while (n-- > 0) {
l = pgm_read_byte(block++);
h = pgm_read_byte(block++);
color = h << 8 | l;
write16(color^0xFFFF);
}
CS_IDLE;
}
Model of my 3.2" LCD:
https://pt.aliexpress.com/store/product/3-2-TFT-LCD-Display-module-Touch-Screen-Shield-board-onboard-temperature-sensor-w-Touch-Pen/1199788_32755473754.html
I would like to compile for the arduino due, the example that loads the bmp images stored on the sd card,
But an error is occurring:
showBMP_kbv_as7:122: error: 'SPCR' was not declared in this scope
SPCR = spi_save;
exit status 1
'SPCR' was not declared in this scope
How can i do to convert this code to operate with the arduino due?
Because the Mega arduino is very slow, and the Arduino Due will be able to achieve better performance of this display that seems to be very good.
Thank you!