From fd7be6b6444f2decd3478ba64660f3c36ff5e1e0 Mon Sep 17 00:00:00 2001 From: Beslan Date: Sun, 13 Feb 2022 11:19:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B2=D0=B5=D1=80=D0=BD=D1=83?= =?UTF-8?q?=D0=BB=20=D1=8D=D0=BA=D1=80=D0=B0=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ili9341.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ili9341.cpp b/ili9341.cpp index 8a0489d..ebe77a7 100644 --- a/ili9341.cpp +++ b/ili9341.cpp @@ -62,16 +62,16 @@ ILI9341::ILI9341(PinName MOSI, PinName MISO, PinName SCK, PinName DC, PinName RS //------------memory access control------------------------ LCD_WR_REG(0x36); // memory access control - LCD_WR_Data(0xE8); //Поворот экрана на 0 градусов - // LCD_WR_Data(0x28); //Поворот экрана на 180 градусов + LCD_WR_Data(0xE8U); //Поворот экрана на 0 градусов +// LCD_WR_Data(0x28U); //Поворот экрана на 180 градусов LCD_WR_REG(0x3a); // pixel format set LCD_WR_Data(0x55); //16bit /pixel //----------------- frame rate------------------------------ LCD_WR_REG(0xb1); // frame rate - LCD_WR_Data(0x00); - LCD_WR_Data(0x1B); //70 + LCD_WR_Data(0x00U); + LCD_WR_Data(0x1BU); //70 //----------------Gamma--------------------------------- LCD_WR_REG(0xf2); // 3Gamma Function Disable LCD_WR_Data(0x08);