.
Diff: Inits/ILI9341.cpp
- Revision:
- 34:cafa6f431835
- Parent:
- 21:ae0a4eedfc90
- Child:
- 37:af25f4ad30d6
diff -r f87f06292637 -r cafa6f431835 Inits/ILI9341.cpp --- a/Inits/ILI9341.cpp Mon Feb 06 12:29:33 2017 +0000 +++ b/Inits/ILI9341.cpp Mon Dec 06 22:06:50 2021 +0000 @@ -16,7 +16,7 @@ -ILI9341::ILI9341(proto_t displayproto, PortName port, PinName CS, PinName reset, PinName DC, PinName WR, PinName RD, const char *name, unsigned int LCDSIZE_X, unsigned int LCDSIZE_Y) +/*ILI9341::ILI9341(proto_t displayproto, PortName port, PinName CS, PinName reset, PinName DC, PinName WR, PinName RD, const char *name, unsigned int LCDSIZE_X, unsigned int LCDSIZE_Y) : TFT(displayproto, port, CS, reset, DC, WR, RD, LCDSIZE_X, LCDSIZE_Y, name) { hw_reset(); @@ -41,7 +41,7 @@ cls(); FastWindow(true); // most but not all controllers support this, even if datasheet tells they should. locate(0,0); -} +}*/ ILI9341::ILI9341(proto_t displayproto, int Hz, PinName mosi, PinName miso, PinName sclk, PinName CS, PinName reset, PinName DC, const char *name, unsigned int LCDSIZE_X , unsigned int LCDSIZE_Y) : TFT(displayproto, Hz, mosi, miso, sclk, CS, reset, DC, LCDSIZE_X, LCDSIZE_Y, name) { @@ -107,13 +107,13 @@ wr_cmd8(0xB1); // Frame Rate wr_data8(0x00); - wr_data8(0x18); // AN 1B, was 1B 1B=70hz + wr_data8(0x13); // AN 1B, was 1B 1B=70hz wr_cmd8(0xB6); // display function control, INTERESTING wr_data8(0x08); // AN 0A, was 0A - wr_data8(0x82); // AN A2 + wr_data8(0x80); // AN A2 wr_data8(0x27); // AN not present - // wr_data8(0x00); // was present + //wr_data8(0x00); // was present wr_cmd8(0xF2); // Gamma Function Disable wr_data8(0x00); // AN 00, was 08 @@ -171,9 +171,9 @@ wr_cmd8(0x13); // Nomal Displaymode wr_cmd8(0x11); // sleep out - wait_ms(150); + wait_ms(25); wr_cmd8(0x29); // display on - wait_ms(150); + wait_ms(25); } \ No newline at end of file