mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-06 04:32:38 +00:00
failed indexed register read in parallel
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//#define SUPPORT_0139 //costs about 238 bytes
|
||||
//#define SUPPORT_1289 //costs about 408 bytes
|
||||
#define SUPPORT_1963 //only works with 16BIT bus anyway
|
||||
#define SUPPORT_8347D //costs about 472 bytes, 0.27s
|
||||
//#define SUPPORT_8347D //costs about 472 bytes, 0.27s
|
||||
//#define SUPPORT_8347A //costs about +178 bytes on top of 8347D
|
||||
#define OFFSET_9327 32 //costs about 103 bytes, 0.08s
|
||||
|
||||
@@ -186,6 +186,16 @@ uint16_t MCUFRIEND_kbv::readID(void)
|
||||
return ret; //0x9488, 9486, 9340, 9341
|
||||
if (ret == 0x00D3 || ret == 0xD3D3)
|
||||
return ret; //16-bit write-only bus
|
||||
/*
|
||||
msb = 0x12; //read 3rd,4th byte. does not work in parallel
|
||||
pushCommand(0xD9, &msb, 1);
|
||||
ret2 = readReg(0xD3);
|
||||
msb = 0x13;
|
||||
pushCommand(0xD9, &msb, 1);
|
||||
ret = (ret2 << 8) | readReg(0xD3);
|
||||
// if (ret2 == 0x93)
|
||||
return ret2;
|
||||
*/
|
||||
return readReg(0); //0154, 7783, 9320, 9325, 9335, B505, B509
|
||||
}
|
||||
|
||||
@@ -1693,11 +1703,14 @@ void MCUFRIEND_kbv::begin(uint16_t ID)
|
||||
TFTLCD_DELAY8, 125,
|
||||
0x11, 0, //Sleep Out
|
||||
TFTLCD_DELAY8, 20,
|
||||
0xB0, 1, 0x00,
|
||||
0xB0, 1, 0x00, // unlocks E0, F0
|
||||
0xB3, 4, 0x02, 0x00, 0x00, 0x00, //Frame Memory, interface [02 00 00 00]
|
||||
0xB4, 1, 0x00, // Frame mode [00]
|
||||
0xD0, 3, 0x07, 0x42, 0x18, // Set Power [00 43 18] x1.00, x6, x3
|
||||
0xD1, 3, 0x00, 0x07, 0x10, // Set VCOM [00 00 00] x0.72, x1.02
|
||||
0xD2, 2, 0x01, 0x02, // Set Power for Normal Mode [01 22]
|
||||
0xC0, 5, 0x10, 0x3B, 0x00, 0x02, 0x11, //Set Panel Driving [10 3B 00 02 11]
|
||||
0xC1, 3, 0x10, 0x10, 0x88, // Display Timing Normal [10 10 88]
|
||||
0xC5, 1, 0x03, //Frame Rate [03]
|
||||
0xC8, 12, 0x00, 0x32, 0x36, 0x45, 0x06, 0x16, 0x37, 0x75, 0x77, 0x54, 0x0C, 0x00,
|
||||
0x36, 1, 0x0A, //Memory Access [00]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define MCUFRIEND_KBV_H_ 290
|
||||
|
||||
//#define USE_KEIL
|
||||
#define USE_SERIAL
|
||||
//#define USE_SERIAL
|
||||
|
||||
#if ARDUINO < 165
|
||||
#define USE_GFX_KBV
|
||||
|
||||
Reference in New Issue
Block a user