STM32F429 TFT EKRANA RESİM BASMA SORUNU

Başlatan SB7, 13 Ekim 2019, 16:08:22

SB7

Merhabalar.
Stm32f429 discovery kartındaki dahili tft ekrana resim basmaya çalışıyorum. Resimleri Image2Lcd programı ile resimler RGB565 formatına dönüştürdüm ancak kullandığım lcd kütüphanesinde bmp yazmak için böyle bir yapı kullanılıyor.

  void     LCD_WriteBMP(uint32_t BmpAddress);

Bu kodu kullanarak resmin c dosyasını tanımladığımda sürekli hata alıyorum. Aldığım hata bu şekilde

Build target 'Template'
compiling main.c...
..\User\main.c(47): error:  #167: argument of type "unsigned char *" is incompatible with parameter of type "uint32_t"
  LCD_WriteBMP(Ana_Res);
..\User\main.c(52): warning:  #1-D: last line of file ends without a newline
  }
..\User\main.c: 1 warning, 1 error
".\Template\Template.axf" - 1 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02

Sanırım tanımlamadan kaynaklanıyor ancak sorunu düzeltemedim.
main.c dosyamda
extern unsigned char Ana_Res[];
şekilde tanımlı olan resim dosyası resim.c de de
const unsigned short Ana_Res[4146] = { 0X00,0X01,0XF0,0X00,0X8A,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00.....};
şeklinde tanımlı.

Sizce tanımlamalar nasıl yapılmalı?
Altarnatif olarak for döngüsyle
(x,y,RGBdeger)
şeklinde yapmaya kalksam 4146 karakterli dizi elemanlarını nasıl kullanmam gerekiyor?
Şimdiden teşekkürler.
-SB7

SB7

Arkadaşlar konu güncel. Herhangi bir pixele renk datasını göndererek yapacam bu işi ancak burdaki
const unsigned short Ana_Res[4146] = { 0X00,0X01,0XF0,0X00,0X8A,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00.....};

4164 sayısının nasıl kullanılacağı hakkında bir fikrim yok nasıl bir döngü mantığı kullanarak ekrana bu dataları gönderebilirim?
Bu arada ekran 2.4" TFT ekran
-SB7

serkan

#2
STM32 Imager kullanarak deneyin.
https://www.dosyaupload.com/fab6

XC8 için olanı fikir verebilir.

/////////                         ILI9341///////////////////////////////
 
#ifdef __cplusplus
 extern "C" {
#endif 
#include <xc.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>  
#include <stdbool.h>
#include <math.h>
#include <float.h>
 
#define _XTAL_FREQ 80000000      
 
#pragma config OSC = HSPLL       // Oscillator Selection bits (HS oscillator)  
#pragma config FCMEN = OFF      // Fail-Safe Cl  ock Monitor Enable bit (Fail-Safe Clock Monitor disabled)
#pragma config IESO = OFF       // Internal/External Oscillator Switchover bit (Oscillator Switchover mode disabled)

// CONFIG2L 
#pragma config PWRT = OFF       // Power-up Timer Enable bit (PWRT disabled)
//#pragma config BOREN = SBORDIS  // Brown-out Reset Enable bits (Brown-out Reset enabled in hardware only (SBOREN is disabled))
//#pragma config BORV = 3         // Brown Out Reset Voltage bits (Minimum setting)
  
#pragma config BOREN = OFF   // Brown-out Reset Enable bits (Brown-out Reset enabled in hardware only (SBOREN is disabled))
#pragma config BORV = 0         // Brown Out Reset Voltage bits (Minimum setting)

// CONFIG2H
#pragma config WDT = OFF        // Watchdog Timer Enable bit (WDT disabled (control is placed on the SWDTEN bit))
#pragma config WDTPS = 32768    // Watchdog Timer Postscale Select bits (1:32768)

// CONFIG3H
#pragma config CCP2MX = PORTC   // CCP2 MUX bit (CCP2 input/output is multiplexed with RC1)
#pragma config PBADEN = OFF      // PORTB A/D Enable bit (PORTB<4:0> pins are configured as analog input channels on Reset)
#pragma config LPT1OSC = OFF    // Low-Power Timer1 Oscillator Enable bit (Timer1 configured for higher power operation)
#pragma config MCLRE = OFF       // MCLR Pin Enable bit (MCLR pin enabled; RE3 input pin disabled)

// CONFIG4L
#pragma config STVREN = ON      // Stack Full/Underflow Reset Enable bit (Stack full/underflow will cause Reset)
#pragma config LVP = OFF        // Single-Supply ICSP Enable bit (Single-Supply ICSP disabled)
#pragma config XINST = OFF      // Extended Instruction Set Enable bit (Instruction set extension and Indexed Addressing mode disabled (Legacy mode))

// CONFIG5L
#pragma config CP0 = OFF        // Code Protection bit (Block 0 (000800-001FFFh) not code-protected)
#pragma config CP1 = OFF        // Code Protection bit (Block 1 (002000-003FFFh) not code-protected)
#pragma config CP2 = OFF        // Code Protection bit (Block 2 (004000-005FFFh) not code-protected)
#pragma config CP3 = OFF        // Code Protection bit (Block 3 (006000-007FFFh) not code-protected)

// CONFIG5H
#pragma config CPB = OFF        // Boot Block Code Protection bit (Boot block (000000-0007FFh) not code-protected)
#pragma config CPD = OFF        // Data EEPROM Code Protection bit (Data EEPROM not code-protected)

// CONFIG6L
#pragma config WRT0 = OFF       // Write Protection bit (Block 0 (000800-001FFFh) not write-protected)
#pragma config WRT1 = OFF       // Write Protection bit (Block 1 (002000-003FFFh) not write-protected)
#pragma config WRT2 = OFF       // Write Protection bit (Block 2 (004000-005FFFh) not write-protected)
#pragma config WRT3 = OFF       // Write Protection bit (Block 3 (006000-007FFFh) not write-protected)

// CONFIG6H
#pragma config WRTC = OFF       // Configuration Register Write Protection bit (Configuration registers (300000-3000FFh) not write-protected)
#pragma config WRTB = OFF       // Boot Block Write Protection bit (Boot block (000000-0007FFh) not write-protected)
#pragma config WRTD = OFF       // Data EEPROM Write Protection bit (Data EEPROM not write-protected)

// CONFIG7L
#pragma config EBTR0 = OFF      // Table Read Protection bit (Block 0 (000800-001FFFh) not protected from table reads executed in other blocks)
#pragma config EBTR1 = OFF      // Table Read Protection bit (Block 1 (002000-003FFFh) not protected from table reads executed in other blocks)
#pragma config EBTR2 = OFF      // Table Read Protection bit (Block 2 (004000-005FFFh) not protected from table reads executed in other blocks)
#pragma config EBTR3 = OFF      // Table Read Protection bit (Block 3 (006000-007FFFh) not protected from table reads executed in other blocks)
#pragma config EBTRB = OFF      // Boot Block Table Read Protection bit (Boot block (000000-0007FFh) not protected from table reads executed in other 

blocks)
 
 
#define CS  LATDbits.LATD0  
#define SCL LATDbits.LATD4  
#define SDA LATDbits.LATD3 
#define RES LATDbits.LATD1  
#define RS  LATDbits.LATD2    //  D/C    DATA/COMMAND SELECT
 
#define ILI9341_NOP     0x00
#define ILI9341_SWRESET 0x01
#define ILI9341_RDDID   0x04
#define ILI9341_RDDST   0x09
#define ILI9341_SLPIN   0x10
#define ILI9341_SLPOUT  0x11
#define ILI9341_PTLON   0x12
#define ILI9341_NORON   0x13
#define ILI9341_RDMODE  0x0A
#define ILI9341_RDMADCTL  0x0B
#define ILI9341_RDPIXFMT  0x0C
#define ILI9341_RDIMGFMT  0x0A
#define ILI9341_RDSELFDIAG  0x0F
#define ILI9341_INVOFF  0x20
#define ILI9341_INVON   0x21
#define ILI9341_GAMMASET 0x26
#define ILI9341_DISPOFF 0x28
#define ILI9341_DISPON  0x29
#define ILI9341_CASET   0x2A
#define ILI9341_PASET   0x2B
#define ILI9341_RAMWR   0x2C
#define ILI9341_RAMRD   0x2E
#define ILI9341_PTLAR   0x30
#define ILI9341_MADCTL  0x36
#define ILI9341_PIXFMT  0x3A
#define ILI9341_FRMCTR1 0xB1
#define ILI9341_FRMCTR2 0xB2
#define ILI9341_FRMCTR3 0xB3
#define ILI9341_INVCTR  0xB4
#define ILI9341_DFUNCTR 0xB6
#define ILI9341_PWCTR1  0xC0
#define ILI9341_PWCTR2  0xC1
#define ILI9341_PWCTR3  0xC2
#define ILI9341_PWCTR4  0xC3
#define ILI9341_PWCTR5  0xC4
#define ILI9341_VMCTR1  0xC5
#define ILI9341_VMCTR2  0xC7
#define ILI9341_RDID1   0xDA
#define ILI9341_RDID2   0xDB
#define ILI9341_RDID3   0xDC
#define ILI9341_RDID4   0xDD
#define ILI9341_GMCTRP1 0xE0
#define ILI9341_GMCTRN1 0xE1
#define BLACK       0x0000           
#define RED         0xF800     
#define MAGENTA     0xF81F      
#define YELLOW      0xFFE0      
#define WHITE       0xFFFF      
#define ORANGE      0xFD20      
#define GREENYELLOW 0xAFE5     
#define PINK        0xF81F
 
 
//////////////////////////////////////////////////  
void ILI9341_Initial(void);
void Write_Cmd_Data(unsigned char CMDP);
void Write_Cmd(unsigned char CMD);
void Write_Data(unsigned char DH,unsigned char DL);
void delayms(unsigned int tt);
void Write_color(unsigned int y);
  void resim_tara(uint16_t x,uint16_t y,uint16_t yukseklik,uint16_t genislik,const uint32_t  *resim); 
void ClearScreen(unsigned int bColor);
 
//uint8_t cursor_y;
//uint8_t cursor_x;
 
const uint16_t  bayrak[ ] = {
	0xe862, 0xf0a3, 0xf0a3, 0xe8a3, 0xf0a3, 0xf0a4, 0xe8a4, 0xf0c4, 0xf0a4, 0xe8a3, 0xf0c4, 0xf0a3, 0xe843, 0xe822, 0xe842, 0xf083, 
	0xf0c5, 0xe884, 0xf0a4, 0xe842, 0xe862, 0xe062, 0xe062, 0xe042, 0xe042, 0xe042, 0xe041, 0xe862, 0xf0c3, 0xe883, 0xf0a5, 0xe884, 
	0xe8c4, 0xf0e4, 0xf063, 0xf8a4, 0xe042, 0xe041, 0xe861, 0xf8c3, 0xf083, 0xe842, 0xe822, 0xf883, 0xf083, 0xf084, 0xe843, 0xe822, 
	0xe822, 0xe862, 0xe883, 0xe883, 0xf042, 0xe821, 0xe841, 0xe841, 0xe842, 0xf8a4, 0xf083, 0xe842, 0xe842, 0xe842, 0xe821, 0xf041, 
	0xe883, 0xf0a3, 0xf0a3, 0xe8a3, 0xf0a4, 0xf0a4, 0xe8a3, 0xe8c4, 0xe8a4, 0xf0c4, 0xe862, 0xf8c4, 0xf0a4, 0xf084, 0xf083, 0xf0c4, 
	0xe8a4, 0xe8a4, 0xe8c4, 0xe0a3, 0xd8c4, 0xd8e4, 0xe105, 0xe0e5, 0xd8e5, 0xd8c4, 0xe945, 0xd8c3, 0xe0a3, 0xe062, 0xe883, 0xf0c4, 
	0xe8a3, 0xe883, 0xf083, 0xf8a4, 0xf8c4, 0xf0a3, 0xf0a3, 0xf082, 0xf0c4, 0xf083, 0xf083, 0xf8a4, 0xf084, 0xf084, 0xf084, 0xf084, 
	0xf063, 0xf083, 0xf0c4, 0xf0c4, 0xf883, 0xf083, 0xf083, 0xf0a3, 0xf883, 0xf883, 0xf083, 0xf084, 0xf0a3, 0xf0a3, 0xf0a3, 0xf0a2, 
	0xe8a3, 0xf0c4, 0xe8a3, 0xe8a3, 0xf0a4, 0xe8a3, 0xe8a3, 0xe8a3, 0xf0a5, 0xf064, 0xf8a4, 0xf063, 0xf083, 0xf0a3, 0xf8e4, 0xf0c4, 
	0xf0c4, 0xe0c4, 0xd905, 0xd146, 0xc186, 0xb987, 0xb966, 0xc167, 0xb967, 0xc167, 0xb946, 0xc146, 0xd946, 0xe125, 0xe8a3, 0xf0c3, 
	0xe8c4, 0xf0c4, 0xf083, 0xf883, 0xf063, 0xf083, 0xf0a4, 0xf0a3, 0xe8a4, 0xe8a4, 0xe8a4, 0xf0a4, 0xf0a4, 0xf084, 0xf0a4, 0xf084, 
	0xf884, 0xf084, 0xe8a4, 0xe8a4, 0xf084, 0xf884, 0xf083, 0xf0a3, 0xf883, 0xf021, 0xe843, 0xf0a4, 0xe8a4, 0xe8a4, 0xe8c4, 0xe8c3, 
	0xe8a3, 0xe8a3, 0xe8a3, 0xe8a3, 0xf0a4, 0xe8a3, 0xe8c3, 0xe8a3, 0xf0a5, 0xf064, 0xf042, 0xe821, 0xf083, 0xe062, 0xd062, 0xd905, 
	0xc925, 0xc986, 0xb186, 0xfe39, 0xfe9a, 0xfe7a, 0xfe9a, 0xfe9b, 0xfe7b, 0xfe9b, 0xfebb, 0xfe9b, 0xfdd8, 0xb986, 0xc965, 0xc924, 
	0xc8a3, 0xd082, 0xe062, 0xe862, 0xe842, 0xf8a4, 0xf083, 0xf083, 0xe8a4, 0xe0c4, 0xe8c4, 0xe8a4, 0xf0c4, 0xf0a4, 0xf0a3, 0xf083, 
	0xf084, 0xf084, 0xe8a4, 0xe8a4, 0xf084, 0xf084, 0xf0a4, 0xf0a3, 0xf883, 0xf022, 0xe843, 0xf084, 0xe8a4, 0xe8a3, 0xe8c3, 0xe8a3, 
	0xf0a3, 0xf0a4, 0xf0a4, 0xf0a4, 0xf0a3, 0xe8a3, 0xf0c4, 0xf0a3, 0xf063, 0xf8a3, 0xf041, 0xf061, 0xe021, 0xe0a4, 0xc926, 0xb1a7, 
	0xfebb, 0xff1c, 0xff3c, 0xff3d, 0xff9d, 0xff9d, 0xff7d, 0xff7d, 0xff9d, 0xff5d, 0xff7d, 0xff3d, 0xff1d, 0xff1d, 0xff7e, 0xff5d, 
	0xa9c8, 0xc966, 0xd082, 0xe861, 0xe821, 0xf883, 0xf883, 0xf8a3, 0xf0c4, 0xe8c4, 0xe8c4, 0xe0a3, 0xe8a4, 0xe8a4, 0xf0c3, 0xe8a2, 
	0xf0c2, 0xf0c3, 0xe8c3, 0xe8c4, 0xe8a4, 0xe8a4, 0xe8a4, 0xf0a4, 0xf0a4, 0xf083, 0xf063, 0xf0a4, 0xf0a4, 0xf0a3, 0xf0a3, 0xf0a3, 
	0xf084, 0xf084, 0xf0a4, 0xf0a4, 0xf0a3, 0xe862, 0xf0a3, 0xf083, 0xf042, 0xf061, 0xe000, 0xe081, 0xd8c3, 0xc946, 0xfe19, 0xfe9b, 
	0xffbe, 0xffbe, 0xffff, 0xffdf, 0xffbe, 0xff7d, 0xff7d, 0xff5c, 0xfefb, 0xfedb, 0xfedb, 0xfebb, 0xfe9b, 0xfebc, 0xff3d, 0xff5e, 
	0xfefc, 0xfedb, 0xb8a2, 0xc8a2, 0xd882, 0xe062, 0xf042, 0xf001, 0xf083, 0xf0a3, 0xf0c4, 0xe8a3, 0xe8c4, 0xe8a3, 0xe8a3, 0xe8c2, 
	0xe8a2, 0xe8c2, 0xe8c3, 0xe8c3, 0xe0c4, 0xe0c4, 0xe8a4, 0xe8a4, 0xe883, 0xf0a4, 0xf0a3, 0xf083, 0xf0a4, 0xf083, 0xf083, 0xf0a3, 
	0xf0a4, 0xf084, 0xf084, 0xf084, 0xe8a3, 0xe042, 0xf084, 0xf042, 0xf020, 0xe861, 0xd8c3, 0xc945, 0xb1c6, 0xfe18, 0xfefc, 0xff9e, 
	0xffde, 0xffff, 0xffbe, 0xffbf, 0xff7e, 0xfefc, 0xfdb7, 0xb966, 0xc946, 0xd146, 0xd146, 0xb883, 0xc926, 0xd146, 0xd146, 0xc966, 
	0xfedb, 0xfedb, 0xfefc, 0xb1a7, 0xb8e4, 0xc8a3, 0xe842, 0xf802, 0xf822, 0xf863, 0xf863, 0xf883, 0xf0a3, 0xf0a3, 0xf083, 0xf0c3, 
	0xe8c2, 0xe8c3, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8c3, 0xe8c4, 0xe8c4, 0xe8a4, 0xf0a4, 0xf0a4, 0xe8a3, 0xf0a4, 0xf0a4, 0xf084, 0xf084, 
	0xf0a4, 0xe8a4, 0xf0a4, 0xe8a4, 0xe8c4, 0xe042, 0xf884, 0xf022, 0xf040, 0xd881, 0xc165, 0xfe38, 0xfefb, 0xff7c, 0xffbe, 0xffff, 
	0xffff, 0xffdf, 0xff7e, 0xfefc, 0xfe9a, 0xb1a7, 0xc945, 0xe105, 0xf0a4, 0xe842, 0xf8a4, 0xf0a4, 0xf8c4, 0xe842, 0xe821, 0xe8e4, 
	0xc945, 0xb9a7, 0xa986, 0xfedb, 0xfe9a, 0xd905, 0xe821, 0xf802, 0xf802, 0xf822, 0xf002, 0xf022, 0xf042, 0xf082, 0xf063, 0xf083, 
	0xf0a3, 0xe883, 0xe884, 0xe884, 0xe8a4, 0xe8a4, 0xe8c4, 0xe8c4, 0xe8a4, 0xe8a3, 0xe8c3, 0xe8a3, 0xe8a4, 0xf0a4, 0xf0a5, 0xf084, 
	0xe8c3, 0xe8c4, 0xe8c3, 0xe8c4, 0xe8c4, 0xe8a3, 0xf8a4, 0xe822, 0xe841, 0xd125, 0xfe9b, 0xff5e, 0xff9e, 0xffde, 0xfffe, 0xfffe, 
	0xffbe, 0xff7e, 0xfe9b, 0xc269, 0xb0c2, 0xc8c2, 0xd8a2, 0xe042, 0xf042, 0xf022, 0xf042, 0xf042, 0xf022, 0xf021, 0xf021, 0xf042, 
	0xe062, 0xd882, 0xd0a3, 0xc882, 0xf165, 0xf987, 0xe801, 0xf822, 0xf022, 0xf842, 0xf022, 0xf042, 0xf042, 0xf022, 0xf002, 0xf022, 
	0xf064, 0xf084, 0xe863, 0xf0a4, 0xf0a4, 0xf0a4, 0xe8a4, 0xe8a4, 0xe8c3, 0xe8c3, 0xe8a3, 0xe8a3, 0xe8c3, 0xe8a3, 0xe8a4, 0xe8a4, 
	0xf0a3, 0xe8c4, 0xe0c3, 0xe0a3, 0xe8a3, 0xf0e4, 0xf063, 0xf8e4, 0xd0a3, 0xb987, 0xff1e, 0xffdf, 0xffff, 0xffdf, 0xfffe, 0xff9d, 
	0xff5e, 0xfe5a, 0xb167, 0xc0a3, 0xd8a2, 0xe040, 0xe881, 0xe841, 0xf022, 0xf022, 0xe822, 0xe842, 0xf022, 0xf022, 0xf022, 0xf022, 
	0xf021, 0xe842, 0xe821, 0xe862, 0xe841, 0xe821, 0xf021, 0xf021, 0xf022, 0xe842, 0xe0a3, 0xd063, 0xd842, 0xe042, 0xf863, 0xf863, 
	0xf885, 0xf885, 0xf0a4, 0xf0a4, 0xf043, 0xf084, 0xf0e5, 0xf0c4, 0xe8c3, 0xe8c3, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8c3, 0xe8a3, 0xe8a3, 
	0xf083, 0xe8a3, 0xe8c3, 0xe904, 0xe8a3, 0xf0c4, 0xe862, 0xd062, 0xb966, 0xfebb, 0xff7f, 0xffdf, 0xff9f, 0xffdf, 0xffff, 0xff7e, 
	0xfe1a, 0xc147, 0xd8c5, 0xe063, 0xe841, 0xe841, 0xe861, 0xf082, 0xf883, 0xf083, 0xe8a4, 0xe8a4, 0xe8a4, 0xf0a3, 0xf883, 0xf883, 
	0xf0a3, 0xf0a4, 0xf063, 0xf022, 0xf841, 0xf000, 0xf821, 0xf821, 0xf022, 0xd842, 0xc166, 0xfebb, 0xc105, 0xc883, 0xe042, 0xe801, 
	0xe802, 0xf042, 0xf042, 0xf082, 0xf022, 0xf883, 0xe062, 0xe8c3, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8a4, 0xe8c4, 0xe8c4, 
	0xf0a4, 0xe8a4, 0xe8c3, 0xe082, 0xe042, 0xf0a4, 0xe883, 0xd125, 0xfe7a, 0xff5d, 0xffdf, 0xf79f, 0xffff, 0xffdf, 0xffbf, 0xff1d, 
	0xb988, 0xe105, 0xe022, 0xf843, 0xe801, 0xf882, 0xe841, 0xf0a3, 0xf083, 0xf0a3, 0xe8a3, 0xe0c4, 0xe0c4, 0xe8a4, 0xf084, 0xf084, 
	0xf0a4, 0xf0a4, 0xf8a4, 0xf002, 0xf822, 0xf821, 0xf000, 0xf021, 0xf022, 0xd0a3, 0xa9a7, 0xff1c, 0xfefc, 0xb186, 0xe145, 0xd882, 
	0xd0a3, 0xc882, 0xd0a3, 0xd082, 0xe841, 0xe842, 0xf0e4, 0xe8c4, 0xe8a4, 0xf0a4, 0xe8a3, 0xe8a3, 0xf0a3, 0xe8a4, 0xe8c4, 0xe0c4, 
	0xe8a5, 0xf0c5, 0xf0c3, 0xf0c3, 0xe842, 0xe8a3, 0xe0c4, 0xc187, 0xfebb, 0xffbe, 0xffde, 0xffff, 0xffff, 0xffff, 0xffdf, 0xff3d, 
	0xc166, 0xe8c3, 0xf042, 0xf821, 0xf842, 0xf041, 0xf082, 0xf083, 0xf0a3, 0xf0a3, 0xe8c3, 0xe8c3, 0xe8c3, 0xe8c4, 0xf0a4, 0xf0a4, 
	0xf0a3, 0xf062, 0xf084, 0xf864, 0xf002, 0xf022, 0xf842, 0xe800, 0xe821, 0xd0c3, 0xa1e8, 0xff7e, 0xff3c, 0xff7d, 0xa9a5, 0xb986, 
	0xa9a6, 0xff1c, 0xff1b, 0xfeda, 0xd082, 0xe842, 0xe041, 0xe862, 0xf084, 0xf084, 0xf0a3, 0xf0a3, 0xf0a3, 0xe8a3, 0xe8c4, 0xe8c4, 
	0xe8a5, 0xe883, 0xf0a3, 0xf0a3, 0xe842, 0xe8c4, 0xd125, 0xfdf8, 0xff5d, 0xffdf, 0xffde, 0xfffe, 0xffbe, 0xffff, 0xff9e, 0xfe9a, 
	0xc945, 0xf0e3, 0xe800, 0xf022, 0xf863, 0xf083, 0xf0c4, 0xf0a3, 0xf0a3, 0xf0a3, 0xe8a2, 0xe8a3, 0xe8a3, 0xe8a3, 0xf0a4, 0xf0a4, 
	0xf0a3, 0xf8c3, 0xf083, 0xf884, 0xf022, 0xf043, 0xd842, 0xd8e3, 0xc8c2, 0xb986, 0xff3d, 0xff9f, 0xffff, 0xffbe, 0xfeba, 0xfe99, 
	0xfe9a, 0xff5d, 0xff3c, 0xb1a6, 0xc862, 0xe862, 0xf8c4, 0xf0c4, 0xf084, 0xf084, 0xf0a3, 0xf0a3, 0xf0a3, 0xe8a3, 0xe8c4, 0xe8c4, 
	0xf0a4, 0xf0a4, 0xe8a3, 0xe8a3, 0xe041, 0xe905, 0xc166, 0xfe5a, 0xff5e, 0xffdf, 0xffff, 0xffff, 0xffff, 0xff7e, 0xfefb, 0xb1c7, 
	0xd924, 0xf0c3, 0xf884, 0xf043, 0xf8c5, 0xe884, 0xe884, 0xf0a4, 0xf0a3, 0xf0a3, 0xe8a3, 0xe8a3, 0xe8a4, 0xe8a4, 0xf0a4, 0xf0a4, 
	0xf0c3, 0xf0a3, 0xe842, 0xe822, 0xf063, 0xe0c4, 0xc966, 0xa1c7, 0xff5c, 0xff7d, 0xff9f, 0xff9f, 0xffdf, 0xffff, 0xff9e, 0xff5d, 
	0xfefb, 0xff1c, 0xc146, 0xd883, 0xf063, 0xe801, 0xe801, 0xf0a4, 0xe8a4, 0xe8a4, 0xf0a4, 0xf0a4, 0xf0a4, 0xe8a4, 0xe8a4, 0xe8c4, 
	0xe884, 0xe884, 0xf0c4, 0xf0c4, 0xe8a3, 0xe0e4, 0xb966, 0xfebb, 0xff7e, 0xffff, 0xffff, 0xffdf, 0xffff, 0xff7d, 0xfe59, 0xb965, 
	0xe104, 0xe862, 0xe822, 0xf084, 0xe864, 0xf0c5, 0xe8a4, 0xf0a4, 0xf0a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a3, 0xe8a3, 
	0xe8c3, 0xe883, 0xf084, 0xe843, 0xe801, 0xf967, 0xfe9b, 0xff1c, 0xff9d, 0xffde, 0xffbf, 0xffdf, 0xffff, 0xffff, 0xffdf, 0xffdf, 
	0xfe79, 0xa1c7, 0xc883, 0xf023, 0xf002, 0xf802, 0xf884, 0xf083, 0xe8c4, 0xe8c4, 0xe8a4, 0xf084, 0xf0a4, 0xf0a4, 0xe8a4, 0xe8a4, 
	0xe884, 0xe884, 0xf0c3, 0xf0c3, 0xf0c3, 0xe105, 0xb966, 0xfe9b, 0xff7e, 0xffff, 0xffdf, 0xffff, 0xffff, 0xffbe, 0xfe59, 0xc186, 
	0xe0e4, 0xf062, 0xe822, 0xf8a4, 0xe8a4, 0xe8c4, 0xe8a3, 0xf0c4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8c4, 
	0xe8a3, 0xe8a3, 0xe883, 0xf8a4, 0xe802, 0xf063, 0xe0e5, 0xc166, 0xff3b, 0xff7c, 0xffbe, 0xffff, 0xffbf, 0xffbf, 0xffdf, 0xffbe, 
	0xfedb, 0xa1c7, 0xc884, 0xe823, 0xf001, 0xf802, 0xf802, 0xf863, 0xe8a4, 0xe8c4, 0xe8a4, 0xf0a4, 0xf0a4, 0xe8a4, 0xe8a4, 0xe8a4, 
	0xf0c5, 0xf0c4, 0xe882, 0xe862, 0xe8a3, 0xd083, 0xc967, 0xfe5a, 0xff7d, 0xffff, 0xffbf, 0xffff, 0xffff, 0xffbd, 0xfefb, 0xb1a7, 
	0xe104, 0xe821, 0xf002, 0xf002, 0xf0a4, 0xf0c4, 0xe8a3, 0xe8a3, 0xe8c4, 0xe8c4, 0xe8a4, 0xe8c4, 0xe8c4, 0xe8a3, 0xe8a4, 0xe8c4, 
	0xf0c4, 0xf0e4, 0xe8a3, 0xf083, 0xf022, 0xe802, 0xe863, 0xc862, 0xa8e3, 0xa1e7, 0xff7d, 0xff5d, 0xffbf, 0xff9f, 0xff7e, 0xff5d, 
	0xfedb, 0xfefc, 0xc146, 0xd8a4, 0xf042, 0xf001, 0xf863, 0xf063, 0xe8a4, 0xe8a4, 0xf0a4, 0xf0a4, 0xf0a4, 0xe8a4, 0xe8a4, 0xe8a4, 
	0xe883, 0xe8a3, 0xf0a3, 0xe842, 0xf0a3, 0xd883, 0xc925, 0xfe39, 0xff5d, 0xffff, 0xffbf, 0xffdf, 0xffff, 0xfffe, 0xffbe, 0xfe99, 
	0xd144, 0xe020, 0xf842, 0xf843, 0xf063, 0xf0a4, 0xe8a4, 0xe8c4, 0xe8c3, 0xe8a3, 0xf0a3, 0xf0a3, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a3, 
	0xe883, 0xe883, 0xf0c4, 0xe842, 0xf042, 0xf862, 0xe800, 0xe882, 0xd882, 0xc0e4, 0xa9e7, 0xfefb, 0xfefc, 0xff7e, 0xff5d, 0xff3c, 
	0xff1d, 0xff1c, 0xff1b, 0xb9a6, 0xd042, 0xf022, 0xf022, 0xf083, 0xf0a4, 0xe8a4, 0xe8a4, 0xf0a3, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8a3, 
	0xf0c3, 0xf0a3, 0xf0a3, 0xf0a3, 0xe021, 0xf0e5, 0xd905, 0xb166, 0xfedb, 0xffdf, 0xffdf, 0xffbf, 0xffff, 0xffff, 0xffde, 0xff3c, 
	0xc165, 0xe081, 0xe800, 0xf022, 0xf883, 0xf063, 0xf0a4, 0xf0c4, 0xe8a3, 0xe8a3, 0xf0a3, 0xf0a3, 0xf0a4, 0xe8c4, 0xe8c4, 0xe8c4, 
	0xe8c4, 0xe8a3, 0xf0a4, 0xf083, 0xf083, 0xf042, 0xf862, 0xf000, 0xe821, 0xd063, 0xc186, 0xfefb, 0xfe59, 0xa9c7, 0xb186, 0xb9a6, 
	0xb987, 0xb1a7, 0xfefa, 0xfeda, 0xd883, 0xe821, 0xf083, 0xf8c4, 0xe8a4, 0xe8a4, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8c4, 
	0xe841, 0xf8c3, 0xf0a3, 0xf8a4, 0xf022, 0xf063, 0xf0a4, 0xd146, 0xfe79, 0xff7d, 0xff9e, 0xffdf, 0xffff, 0xffdf, 0xffdf, 0xff3d, 
	0xb186, 0xc882, 0xf083, 0xf042, 0xf042, 0xf884, 0xf884, 0xf084, 0xf084, 0xf084, 0xf084, 0xf0a4, 0xe8a3, 0xe8a3, 0xe8c3, 0xe8c3, 
	0xe8c4, 0xf0a4, 0xf064, 0xf8a5, 0xf083, 0xe821, 0xf001, 0xf842, 0xf043, 0xd863, 0xc146, 0xfe9a, 0xc904, 0xc862, 0xd8e3, 0xd062, 
	0xd062, 0xd083, 0xe165, 0xd0a2, 0xe061, 0xf041, 0xe841, 0xe862, 0xe8c3, 0xe0c3, 0xe8a3, 0xe8a3, 0xe8a3, 0xe8c4, 0xe8a4, 0xe8c4, 
	0xe842, 0xe862, 0xf083, 0xe822, 0xf022, 0xf042, 0xf042, 0xd062, 0xb986, 0xfe38, 0xff5d, 0xffdf, 0xffdf, 0xffdf, 0xffdf, 0xff3d, 
	0xfedc, 0xb966, 0xc8a3, 0xd842, 0xe042, 0xe822, 0xf883, 0xf884, 0xf084, 0xf0a4, 0xf084, 0xf083, 0xf0a3, 0xe8a3, 0xe8a3, 0xe8a3, 
	0xe8c3, 0xf0a3, 0xf063, 0xf0a4, 0xe083, 0xe062, 0xf062, 0xf001, 0xe822, 0xf0c4, 0xd926, 0xe187, 0xe042, 0xf042, 0xe821, 0xe821, 
	0xf062, 0xe842, 0xe020, 0xe861, 0xe820, 0xf882, 0xf042, 0xf0a3, 0xe0c3, 0xe0e3, 0xe8a3, 0xf0a3, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8c4, 
	0xe862, 0xf083, 0xf8c4, 0xf0a4, 0xe883, 0xe863, 0xf8c4, 0xe062, 0xc8a2, 0xb124, 0xfefa, 0xff7d, 0xffdf, 0xffdf, 0xff9f, 0xffbf, 
	0xff7e, 0xff1d, 0xa1a7, 0xb905, 0xd8a3, 0xe861, 0xe821, 0xf062, 0xf0a3, 0xf0a3, 0xf883, 0xf882, 0xf083, 0xf0a3, 0xf0a4, 0xf0a4, 
	0xf0a3, 0xf0a3, 0xe8a2, 0xd882, 0xc082, 0xd0e4, 0xe021, 0xf821, 0xf842, 0xe801, 0xe043, 0xe022, 0xf022, 0xf021, 0xf862, 0xf883, 
	0xe801, 0xf042, 0xe861, 0xe861, 0xf062, 0xf001, 0xf863, 0xf0a4, 0xe8c3, 0xe8c3, 0xe8a3, 0xf0a3, 0xf0a4, 0xe8a4, 0xe8a4, 0xe0c4, 
	0xf884, 0xf063, 0xf0a4, 0xe883, 0xe8a4, 0xf0e5, 0xe862, 0xf0c3, 0xe062, 0xc081, 0xb1c6, 0xfefa, 0xff7d, 0xffbf, 0xffbf, 0xffbf, 
	0xffff, 0xffbf, 0xfefd, 0xfe3a, 0xb966, 0xc0c3, 0xd8a2, 0xd862, 0xe062, 0xe062, 0xe841, 0xf041, 0xf042, 0xe863, 0xe884, 0xe083, 
	0xd883, 0xd0c3, 0xc8c2, 0xc0c3, 0xfe59, 0xe9a7, 0xe021, 0xf821, 0xf822, 0xf022, 0xe822, 0xf043, 0xf001, 0xf821, 0xe801, 0xf042, 
	0xf8a4, 0xf062, 0xf0c3, 0xe883, 0xf063, 0xf884, 0xf863, 0xf084, 0xe8c3, 0xe8c3, 0xe8a3, 0xf0a3, 0xf0a4, 0xe8a4, 0xe8a4, 0xe8c4, 
	0xf084, 0xf084, 0xf0a3, 0xe8a3, 0xe8a4, 0xe8a4, 0xe884, 0xe863, 0xf0a3, 0xe082, 0xc8a2, 0xb985, 0xfed9, 0xff9c, 0xffbe, 0xffff, 
	0xffff, 0xffff, 0xff9f, 0xff5e, 0xfebb, 0xfe9b, 0xb9a7, 0xd125, 0xe104, 0xd862, 0xe862, 0xe842, 0xe021, 0xe083, 0xc883, 0xd146, 
	0xc145, 0xb9a7, 0xfedc, 0xfedb, 0xe186, 0xe062, 0xf022, 0xf802, 0xf022, 0xf042, 0xf042, 0xf022, 0xf021, 0xf022, 0xf062, 0xf082, 
	0xf083, 0xf0a3, 0xf0a4, 0xf0a4, 0xf0a4, 0xf084, 0xf084, 0xf084, 0xe8a4, 0xe8c3, 0xe8c3, 0xe8a3, 0xe8a3, 0xf0a3, 0xe8a3, 0xe8a4, 
	0xf084, 0xf0a4, 0xf0a4, 0xe8a3, 0xe8a4, 0xe8a4, 0xe8a4, 0xe884, 0xf0a3, 0xf8a3, 0xe041, 0xc882, 0xa9a5, 0xfeb9, 0xfefb, 0xff5d, 
	0xff7c, 0xffde, 0xffff, 0xffbf, 0xffff, 0xff7e, 0xfedb, 0xfe39, 0xb986, 0xc946, 0xc925, 0xd166, 0xd146, 0xc966, 0xc1a6, 0xfedb, 
	0xfebb, 0xfdf8, 0xfe3a, 0xb1a7, 0xd0a3, 0xe800, 0xf842, 0xf822, 0xf863, 0xf083, 0xf883, 0xf883, 0xf083, 0xf083, 0xf0a3, 0xf0a3, 
	0xf0a3, 0xe8a3, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xf0a4, 0xf0a3, 0xe8a3, 0xe8a3, 0xe8c3, 0xe8c3, 0xe8a3, 0xf0a3, 0xe8a3, 0xe8a3, 
	0xf084, 0xf0a4, 0xe8a4, 0xe8c4, 0xe8c4, 0xe8c4, 0xe8a4, 0xf0a4, 0xf043, 0xf884, 0xf8c4, 0xe082, 0xd0a3, 0xb8c3, 0xb986, 0xfd76, 
	0xff1c, 0xff3c, 0xffbe, 0xffdf, 0xffff, 0xffff, 0xffbe, 0xff9e, 0xff9e, 0xff7d, 0xff7e, 0xff3d, 0xff5e, 0xff5e, 0xff3d, 0xff1c, 
	0xfedb, 0xc9c7, 0xb8a3, 0xd0c3, 0xe062, 0xf021, 0xf801, 0xf001, 0xf062, 0xf083, 0xf0a3, 0xf0a4, 0xf0a4, 0xe8a4, 0xf0a3, 0xf0a3, 
	0xe8c3, 0xe8c3, 0xe8c3, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8c3, 0xe8c3, 0xe8c3, 0xe8a3, 0xe8a3, 0xe8a3, 0xf0a3, 0xe8a3, 0xe8c3, 0xe8c3, 
	0xf0a4, 0xf084, 0xe8a4, 0xe8c4, 0xe8c3, 0xe8c3, 0xe8a4, 0xf0a4, 0xf885, 0xf064, 0xf064, 0xf0c4, 0xd801, 0xe083, 0xd8a3, 0xb8a3, 
	0xb186, 0xfe9a, 0xfe58, 0xff3c, 0xff5c, 0xff7d, 0xff7d, 0xff9e, 0xff9d, 0xff7d, 0xff9e, 0xff9e, 0xff7e, 0xff7e, 0xff3c, 0xa1c6, 
	0xc165, 0xc8c3, 0xe083, 0xe842, 0xe842, 0xf042, 0xf001, 0xf042, 0xf082, 0xf083, 0xf0a3, 0xf0a3, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a3, 
	0xe8c3, 0xe8c3, 0xe8c3, 0xe8c3, 0xe8a4, 0xe8c4, 0xe8c3, 0xe8c3, 0xe8a3, 0xe8a3, 0xe8a4, 0xe8a4, 0xf0a4, 0xe8a4, 0xe8a4, 0xe8c3, 
	0xe8c4, 0xe884, 0xe883, 0xe883, 0xe8a3, 0xe8a3, 0xf0a3, 0xf0a4, 0xf885, 0xf065, 0xf085, 0xf0c5, 0xf0c4, 0xe8a3, 0xe041, 0xe082, 
	0xd062, 0xd0a3, 0xb8a2, 0xb965, 0xfe79, 0xfeba, 0xfeba, 0xfedb, 0xfeba, 0xfe79, 0xfe58, 0xba08, 0xc166, 0xb8a3, 0xb882, 0xd944, 
	0xd861, 0xe862, 0xf042, 0xe802, 0xe843, 0xf084, 0xf884, 0xf063, 0xf0a3, 0xe8a3, 0xf0a3, 0xf083, 0xf0a3, 0xe8a4, 0xe8c4, 0xe8c4, 
	0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8c4, 0xe8a4, 0xf0a3, 0xf0a3, 0xf0a4, 0xf0a4, 0xf085, 0xf0a4, 0xf0a4, 0xf0a3, 
	0xe8c4, 0xe8a4, 0xe884, 0xf084, 0xf0a3, 0xe8a3, 0xe8a3, 0xf0a3, 0xf084, 0xf8a5, 0xf0c5, 0xe884, 0xe8c4, 0xf0a3, 0xe841, 0xf041, 
	0xf042, 0xf062, 0xe041, 0xd0a2, 0xb8e3, 0xa104, 0xa124, 0x9904, 0xa145, 0xa124, 0xb0e3, 0xc8c3, 0xd862, 0xe882, 0xe882, 0xe842, 
	0xf042, 0xf021, 0xf022, 0xf042, 0xf0c4, 0xe884, 0xf0a4, 0xf0a5, 0xe8a3, 0xe8a3, 0xf0a3, 0xf083, 0xf0a3, 0xe8a4, 0xe8a4, 0xe8a4, 
	0xe8a4, 0xe8a4, 0xf0a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a3, 0xf0a4, 0xf0a4, 0xe8a5, 0xe8a5, 0xe8a4, 0xf0a4, 0xf0a3, 
	0xe8c4, 0xe8a4, 0xe8a4, 0xe8a3, 0xe8c3, 0xe8c3, 0xe8a3, 0xe8a3, 0xe8c4, 0xe8c3, 0xe883, 0xf0c4, 0xe8c5, 0xe8a4, 0xf063, 0xf063, 
	0xe801, 0xe842, 0xf0c4, 0xe8c4, 0xe0c3, 0xd8a3, 0xd0a3, 0xd0c4, 0xc904, 0xd105, 0xd8e5, 0xe0c4, 0xe042, 0xf083, 0xe842, 0xf083, 
	0xf063, 0xf063, 0xf062, 0xf0a3, 0xe8a3, 0xe8c4, 0xe8a4, 0xe8a4, 0xe8c4, 0xe8c4, 0xf0a4, 0xf0a4, 0xf0a4, 0xf0a4, 0xe8a4, 0xe8c3, 
	0xe8c3, 0xe8c3, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a3, 0xe8c3, 0xe8c3, 0xe8c3, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a4, 0xe8a3, 0xe8a3, 
	0xe8a4, 0xe8a4, 0xf0a4, 0xe8c3, 0xe8c4, 0xe8c4, 0xe8a3, 0xe8a3, 0xe0c3, 0xe8c3, 0xf0c4, 0xe8a4, 0xe8a4, 0xf0c5, 0xf884, 0xf883, 
	0xf8a4, 0xf084, 0xf0c4, 0xe883, 0xf0a3, 0xf0a3, 0xf083, 0xe8a3, 0xe0a4, 0xe0e5, 0xe0a4, 0xf0a4, 0xf8a4, 0xf063, 0xf8a4, 0xf063, 
	0xf884, 0xf083, 0xf082, 0xf0a2, 0xe8c3, 0xe8c3, 0xe8c3, 0xe8c4, 0xe8c4, 0xe8a4, 0xf084, 0xf084, 0xf084, 0xe8a4, 0xe8a3, 0xe8c3, 
	0xe8c3, 0xe8c3, 0xe8a4, 0xf0a4, 0xe8a4, 0xe8a3, 0xe8c3, 0xe8c3, 0xe8c3, 0xe8c4, 0xe8a4, 0xe8a4, 0xe8c4, 0xe8c3, 0xe8c3, 0xe8a3, 
	
};
const uint32_t Image[1024] =
{
0x9D2F952F,
0x94EE9D0E,
0x848D8CCD,
0x7C6C742B,
0x848D848C,
0xAD307C2C,
0x93ABDE14,
0x6A454962,
0xC531BC8D,
0xA46EC573,
0xBD529C6F,
0xDE34CDD3,
0xDDF4D5F3,
0xD570DDB2,
0xDDF3D570,
0xBD94FF39,
0xDDD2CD92,
0xD5B2D5F2,
0xD5F3C591,
0xE676D614,
0xDE14DE35,
0xDDD2DDF3,
0xD571D591,
0xD5B3DD92,
0xD5D3C551,
0xDE34DE14,
0x9D0FBD91,
0x9D2F950E,
0x94ED950D,
0x9D4E8D0D,
0x950E9D4F,
0x952F8CEE,
0x9D4F9D2F,
0x9D0EA52E,
0x950E94EE,
0x94CE950E,
0x846D8C8D,
0xC57194F0,
0x49228308,
0xD6169C2E,
0xB4F0BD51,
0x8B8B8B8A,
0xB4CE8369,
0xDDB2DDD2,
0xCD4FCD2F,
0xD5D3DDB2,
0xFF5ACDB4,
0xB551D656,
0xCD91CD92,
0xD5B1CD91,
0xD5D3CD71,
0xE655D5D3,
0xDE14DE36,
0xCD91CDB2,
0xDDB1D590,
0xD591E5B2,
0xC4CEC52F,
0xBC4DCCAE,
0xC5D2CD50,
0x94EFB591,
0x848B8CAD,
0x84CB84AB,
0xA590954E,
0x9D4FA570,
0x9D4F9D2F,
0x9D2FA54F,
0x950E950E,
0x9D0F9D2F,
0xAD719D0F,
0x8B89C5F4,
0x6A874121,
0x31854207,
0x41632944,
0x72C77B09,
0xBCAD8328,
0xCD0EBCAD,
0xD4EDD52E,
0xE6B9DDF3,
0xF7BED6DB,
0xC550C5B4,
0xCD71CD51,
0xDDD2D591,
0xDDD2DDD2,
0xBCEFBCEF,
0xDDF4D5B3,
0xC52FD5D2,
0xD550CD2F,
0xD591D530,
0xBC2CD571,
0xABAAB3EB,
0xDE13C4AD,
0xAD92D633,
0x84AD8CCF,
0x8CED7CAC,
0xA5909D4F,
0x9D70A590,
0x9D2F9D2F,
0x9D0F9D30,
0x950E950E,
0xA5309D2F,
0xAD10AD51,
0x4962ACEF,
0x52474141,
0x19241081,
0x8200882,
0x5A253123,
0xB42B9BCA,
0xD54FC4AC,
0xC4CDCCED,
0xE71BE655,
0xDF3CE7BE,
0xC52FBD93,
0xBD0FBCEF,
0xCD4FCD50,
0xB46CC4EE,
0xA3EBB44C,
0xCD71AC4C,
0xDDD3E613,
0xBCCECD30,
0xD591CD70,
0xC4CEDD91,
0x92E6ABA9,
0x93279B47,
0xB5729BA9,
0x7C2CA551,
0x8CCE848D,
0xA5909D4F,
0x9D2F9D4F,
0x9D4F9D2F,
0x950F9D30,
0x8D0D8D0D,
0xA530952E,
0xACF18C6E,
0x30808B8A,
0x396359E3,
0x21662145,
0x296610A3,
0x39632103,
0xA3C98328,
0xC4ACAC0A,
0xCDD3B46B,
0xEF9EE6F9,
0xD6BAE77D,
0xBCEEC5B3,
0xBCCFB4CE,
0xB4ADBCCE,
0xB42AB44B,
0xBC6BB40A,
0xD570C4CD,
0xE613E5D2,
0xC50FDDD2,
0xD591C50F,
0xC4EED590,
0x92E5A3A8,
0x82847A62,
0x9C0B8AE6,
0xA4CFC5D2,
0x846D94AE,
0x952F8CAE,
0x94EE9D4F,
0x9D509D4F,
0x952F9510,
0x950D950E,
0x94AE9D2F,
0xACD08C4F,
0x284051C4,
0x41A46245,
0x20C331A5,
0x21662902,
0x31221904,
0x8B2751A3,
0xB46C9BA9,
0xDEFACD92,
0xF7BEEF7D,
0xD678DF1B,
0xB4CEC593,
0xBCCEB48E,
0xB46BBCCD,
0xBC8CB44A,
0x9348AC0A,
0x9BCA9388,
0xDDB3BC8E,
0xDDB2EE14,
0xD590C50E,
0xC4EDD590,
0x9305A3E9,
0x93267A42,
0x93479B26,
0xBD30C52F,
0xA530B530,
0x8CEE9D50,
0x8CED8CEE,
0x9D309D50,
0x950F950F,
0xA5309D2F,
0x83ED948E,
0x8B8BAD12,
0x28803060,
0x528841C5,
0x18602944,
0x423101,
0x39630882,
0x938A59E4,
0xCDD5B4D0,
0xE77EEF3C,
0xE77EEFBF,
0xD657DEFB,
0xB48DCDB3,
0xBCADB48D,
0xBC4AC4AC,
0x9389ABE9,
0x29236288,
0x392320C1,
0x8B6B5A27,
0xE5F3D593,
0xD570DD90,
0xCD2ED590,
0x82C5AC09,
0x8B066A03,
0x8B078B05,
0xBC8EB42C,
0xCD92C530,
0xAD51C5D3,
0x8CEE950F,
0x9D109D50,
0xA5309D30,
0x9CD0A510,
0x940E83AC,
0x51A4AD12,
0x28C03880,
0x4A693185,
0x190431E7,
0x106110A3,
0x49E618A2,
0xC5B49C6F,
0xEF5DE6DA,
0xEF9FEF7E,
0xE77EEFBF,
0xD657DEFB,
0xB4AEDE35,
0xB44BBCAD,
0x9B89ABEA,
0x49C47AC7,
0x21041881,
0x4A4931A6,
0x10201082,
0xCD7293CD,
0xDD91D591,
0xD56ED570,
0x82E6AC4A,
0x61E34901,
0x6A647A83,
0xB42BA3AA,
0xBC8DBC2B,
0xCDD3BCEF,
0x952FBDD3,
0x9D10950F,
0xAD52AD71,
0x6B4A8C6E,
0xA49083ED,
0x28408BEE,
0x18204100,
0x298562C9,
0x428A3A49,
0x49C53A08,
0x6B8D3103,
0xDF7ECEBB,
0xEF5EE75D,
0xE75DEF3D,
0xE77EEFBE,
0xDE98E75C,
0xCD91DE36,
0x9B88B42A,
0x4A067B08,
0x292339A5,
0x520651E6,
0xCE798C92,
0x41E8,
0xB4D028E2,
0xD591B4AE,
0xD56FDD70,
0x8B27B48B,
0x30602840,
0x62436201,
0xABC98B06,
0xBC4CA368,
0xC4AEB44C,
0xB591CDB2,
0xAD318CAE,
0x734BA4CF,
0x840E6B2A,
0x8C0E944F,
0x31217B2A,
0x18403942,
0x72C89C4E,
0x59A23900,
0x72E96A24,
0xEF9E62CA,
0xDFBFF7FF,
0xEF7EDF5E,
0xFFDFF7BF,
0xE77EF7DF,
0xE6D9E73C,
0xC531D615,
0x9BA8ABE9,
0x5249836A,
0x205AEC,
0x28807B8C,
0x30E20841,
0x1882730B,
0x8B280820,
0xB42CD50D,
0xCD2EC4CE,
0x9369C50E,
0x30A02820,
0x5A025180,
0xABC9A3E9,
0xA347A347,
0xC46CC42C,
0xC591B44C,
0x8C2DADB2,
0x52264983,
0x9470942F,
0x9C905269,
0x39016266,
0x628720A0,
0x7AE8ACAF,
0x624451A2,
0xB534AC4C,
0xFFFFF7BE,
0xF7DFF7BE,
0xEFBFF7DF,
0xE73DEF9F,
0xEF9FE77E,
0xDE79EF7D,
0xBCF0D5F5,
0xA40ABCCD,
0x8B8D8329,
0x29047B4D,
0x29020820,
0x30E249A3,
0xAD131861,
0x62044164,
0xCCCEB42B,
0xCD2EC4CE,
0x936ABCCD,
0x38E02820,
0x830751C2,
0xB3EAAC0B,
0xA327B3CA,
0xB40A9B27,
0xA40CB42C,
0x5A868C8E,
0x7B2B6206,
0x5AAA9CB1,
0x942E942F,
0x39001820,
0xA46F1820,
0x5AA9732A,
0xDF5D8C71,
0xB61AC6DC,
0xBE18A597,
0xE75CD6DA,
0xE77EFFDF,
0xCE9AD6DC,
0xD6FCC659,
0xE71BE77D,
0xCD51DE57,
0xAC6CC50E,
0x8B29A3EB,
0x5A274984,
0x5AAA6B0B,
0x424939E7,
0x4A4A7BF0,
0x520662EA,
0xCD308369,
0xC4EECCCE,
0x9BCBBCAD,
0x38C02840,
0x9BCA4982,
0xA3689BAA,
0xB3EAB3CA,
0xA3EAABCA,
0x9B8AB46C,
0x59E5730A,
0x6B0A51A4,
0x7B6C73AD,
0x30A2A48E,
0x18404982,
0x942D5A46,
0x73AE83CD,
0x3A6B5B2E,
0x328D2A0B,
0x4B2F3ACE,
0x6BD05B4F,
0x94F47C51,
0xDF1BBE39,
0xEF9CE75B,
0xDF1CD71B,
0xCD71D677,
0xC4CECCEE,
0xBCEDCD4F,
0x9C2CAC8D,
0x5A487B2A,
0x4A474A48,
0x5A2541E5,
0xA3EB8369,
0x93687264,
0xA40B9BC9,
0x8B48B44C,
0x40E030A0,
0x9B8A5161,
0x9B89A389,
0xA388A368,
0xA3CAA3CA,
0xA3CAAC0C,
0x49C55206,
0x6B2B5A26,
0x8C0E738D,
0x39016A66,
0x20803921,
0x838B6AA7,
0x210462A8,
0x10C410C3,
0x19261905,
0x3A292187,
0x4ACC3A4A,
0x638F638F,
0xDF1B73F0,
0xEF7CE71B,
0xDF3CE75D,
0xCD72D658,
0xC4ADCD10,
0xCD2EC4EE,
0xC52FC50E,
0x93AAAC8D,
0x8AE77AC6,
0x93479B88,
0xB4099B67,
0xB42BCCEC,
0xA3EAA3EA,
0x6A23A3CA,
0x51613080,
0x9B8959C3,
0x93278B07,
0x8AC6A388,
0xA40BA3CA,
0xB42C9B89,
0x52064A05,
0x630B5226,
0x83ED738D,
0x496151C4,
0x20A028A0,
0x83AC3102,
0x108220C2,
0x210000,
0x108218C3,
0x10C318C3,
0x29A710C4,
0x530D52EC,
0x73AF42AC,
0xEF3BD69A,
0xDEFBEF5C,
0xCD93DE78,
0xCCEFCD30,
0xD530CD0F,
0xCD2EC4ED,
0xBCACC4ED,
0xABA9B3EA,
0xA3889B88,
0xD54FBC8C,
0xD56FE5B1,
0xAC4BCD2F,
0x59A29389,
0x51A24100,
0x938A72A6,
0x8B077AA6,
0x82C69B68,
0xA3EB9348,
0x9B899369,
0x5A275A87,
0x5AEB5227,
0x838C738D,
0x496151C4,
0x8401040,
0xC6173965,
0x8612965,
0x200000,
0x106118A1,
0x1061,
0x8820000,
0x4AAB29A7,
0x31E831E8,
0xE6FAA4D2,
0xDEBAE6FA,
0xD5D4DE78,
0xCD30CD50,
0xCD30CD50,
0xCCEED570,
0xB42AC4CD,
0xA3C9ABEA,
0xBCACA3EA,
0xD5B1CD2F,
0xDDD1D5B1,
0xC4EEDDB1,
0x51619BA9,
0x59A251A2,
0x83288308,
0x82C67AA6,
0x93279307,
0x93698B28,
0x8B079369,
0x51E662A8,
0x62EB5269,
0x838B738D,
0x28C059E3,
0x2923,
0xE73D83EF,
0x2146428B,
0x2010C3,
0x8400840,
0x10822924,
0x0,
0x296518E3,
0x4ACB18E3,
0xDE97A4F1,
0xD698EEF9,
0xD5F4DE77,
0xCD70CD91,
0xC530CD71,
0xD530E5D3,
0xA388C48C,
0xB42A9B88,
0xD54FBCAD,
0xCD2ECD2E,
0xDDB1D590,
0xD570DD90,
0x51419389,
0x59E36203,
0x82E88328,
0x82C682E7,
0x8AE78AE7,
0x8B498B28,
0x93289369,
0x5A2762A8,
0x6B2C62C9,
0x838C736D,
0x10603942,
0x88162E8,
0xBE19BE18,
0x29E8428B,
0x201924,
0x20,
0x4A493166,
0x18E32124,
0x20E32924,
0x8C913185,
0xD677D678,
0xD657E6F9,
0xDE35DE77,
0xCD71CD91,
0xC530CD71,
0xDD91DD92,
0xB40BC4CE,
0xCCEDB42A,
0xCCEDCCEE,
0xC4CDCCED,
0xD54FD52E,
0xD590CD2F,
0x51618B07,
0x72A661E3,
0x83078329,
0x82E782E7,
0x7AA682E7,
0x8B298B28,
0x9369938A,
0x6ACA6AE9,
0x7B6C6B29,
0x7B6C7B6D,
0x31C20000,
0x31E56B8A,
0xA596BE79,
0x8824AEB,
0x8600000,
0x840,
0x632D0821,
0x42494249,
0x62EB4228,
0xC5F59450,
0xCE99D698,
0xDE98DED9,
0xDE35DE76,
0xCD30CD31,
0xC52FCD2F,
0xD591DD90,
0xCD50E5F3,
0xD54FCD2F,
0xC4EECD2F,
0xCCEEC4EE,
0xC4EECD0E,
0xD550C50E,
0x51827265,
0x8B4A6A25,
0x7AC68309,
0x7AA67AC6,
0x82E77286,
0x82C782E8,
0x8B498B49,
0x6AEA6B2A,
0x736C62E9,
0x52888C0F,
0x7C0B0020,
0x636C52C8,
0x8CD3B5F7,
0x32288492,
0x2010A2,
0x8210820,
0x200020,
0x42281081,
0x8C306B6D,
0xC5F6A4F3,
0xD699CE58,
0xE6D9DED9,
0xCDD4D636,
0xC50FC510,
0xCD50CD50,
0xCD4FDD90,
0xDDB2DDB1,
0xDD90E612,
0xD570D570,
0xCD2FD570,
0xC4CEC4EE,
0xBCAEC4CE,
0x6A244100,
0x7286938A,
0x728572A6,
0x72657285,
0x8B497265,
0x72667AA7,
0x8B498308,
0x62A962E9,
0x7BAD4A67,
0x9450,
0x9CEE10A1,
0x9D1231C4,
0x7C508471,
0x8CD38471,
0x2124636E,
0x10620020,
0x10A318E3,
0x5AEB4A69,
0x73CE8C71,
0xD6988C50,
0xD678CE78,
0xD657CE57,
0xCDF4CDF4,
0xC510CD51,
0xD570CD70,
0xC50FC4CD,
0xCD30CD2F,
0xBCCDDD90,
0xEE33DDD1,
0xC4EED570,
0xBCADCD2F,
0x6A44938A,
0x83285162,
0x7AE87AC7,
0x72857286,
0x7AC67AA6,
0x82E77AA7,
0x7AA76A25,
0x83298309,
0x4A066309,
0x83AE5227,
0x10201020,
0x8C6D62E6,
0x4A280840,
0x8CB28C70,
0x8C9273EF,
0x29866BCF,
0x5B2C31A6,
0x630C4249,
0x8C315ACB,
0xB5D6A534,
0xBDD6B5F6,
0xCE58CE58,
0xDE98E6FA,
0x9C6EC5B4,
0xDDB2D592,
0xBCCDC52F,
0xDD91E5D1,
0xDD92DD91,
0xB46CB46C,
0xCD2FBCAD,
0xDDB1DDB1,
0x8B28D570,
0x20204100,
0x83288B48,
0x6A856244,
0x832872E7,
0x72A682E7,
0x72866A45,
0x7AC78B4A,
0x83497AE8,
0x49E66329,
0x93EF41A6,
0x28E028A2,
0x41C26AE6,
0x31640800,
0x94F294D1,
0x5B4D6BAE,
0x5B2C8CB2,
0x73EF7BEF,
0x5AEB5B2C,
0x8C307BAE,
0xADB6AD75,
0xD678C678,
0xCE58DED9,
0xBD94C617,
0xD614BD52,
0xCD30B48E,
0xBCEEB48D,
0xCD0FCD2E,
0xC50FCD0F,
0xDDD2DD91,
0xBCCDDDD2,
0x9BEAB48D,
0x49407AC6,
0x72862020,
0x59C39BCB,
0x6A867B07,
0x6A456A85,
0x72A77AC7,
0x83297286,
0x7AE87AE8,
0x83498B6A,
0x39A46329,
0x6B2A4A25,
0x20A03122,
0x31025205,
0x8401880,
0x844F5288,
0x5B2C6B8D,
0x5B0B7C10,
0x7C3031A6,
0x6BAE6B8D,
0x84306B6D,
0xBDD79D13,
0xBE36AD75,
0xD6D8C636,
0xCE35D697,
0xD593CDD4,
0xC551B4F0,
0xAC4CB46D,
0xC4CEC4CD,
0xCD2FC4CD,
0xDE13D5F2,
0xE614E613,
0x9389D571,
0x20406223,
0xAC6E5A26,
0x72A76204,
0x7AC77B08,
0x7AC67AC7,
0x7AA67AC6,
0x8B497AC7,
0x7B087AE8,
0x8B6A8B6A,
0x3A057C2C,
0x5A884A67,
0x20803143,
0x39433943,
0x10601860,
0x842E3162,
0x29A55AEA,
0x18E32124,
0x21440841,
0x73AE2145,
0x84508C71,
0xB5F78CB2,
0xBE16BE17,
0xB5D5BDD5,
0xB573BDD4,
0xA42EBD52,
0xA44CC551,
0xBCCDBCEE,
0xBC8CBC8C,
0xB46CBCAD,
0xB4AEA46C,
0xE5F4CD71,
0x8B69EE54,
0x30E04981,
0x72A7B4D0,
0x72C772A7,
0x72868349,
0x7AE77AC7,
0x7AC77AC7,
0x7AE87AE7,
0x93AA8308,
0x93AB8349,
0x73CB8CAE,
0x3984630A,
0x28A128E2,
0x312228C1,
0x18800820,
0x73AB1080,
0x18C252A8,
0x0,
0x0,
0x29650020,
0x73AE39E7,
0xADF79513,
0xBDD6C678,
0xB5B5CE58,
0xBDB4B594,
0xACB0BD72,
0xB4ACAC8D,
0xBCCCBCED,
0x9BC99BA8,
0x8B68AC6C,
0x41A551E4,
0xB48D8328,
0x72C7E614,
0x62453100,
0x6225B4AF,
0x72C78308,
0x7AA67AE7,
0x82E77AC7,
0x7AE782E7,
0x7AC782E7,
0x9BEC8329,
0x93AC8B6A,
0x8CCE8CEE,
0x28E1630A,
0x20A120A1,
0x20C128C1,
0x18A01020,
0x4A251880,
0x4A0752A8,
0x29042904,
0x18A22083,
0x8201061,
0x31A60000,
0x74104AAA,
0xBD95AD95,
0xCE57C637,
0xBD93BDD5,
0xB512C5B4,
0xC52FB4CE,
0xBCEEBCEE,
0xB4CEAC8C,
0x62A7B530,
0x52065A46,
0xA46C6224,
0x5204A42C,
0x9C2D2080,
0x728693AB,
0x72C76A86,
0x7AA67286,
0x82E77AC7,
0x82E782E7,
0x7AE87AE7,
0x93AB8B6A,
0x9BED93CB,
0x84AD84ED,
0x18805AC8,
0x20801880,
0x18803101,
0x20C020A0,
0x29222900,
0x7B8E5AA9,
0x626A62AB,
0x49E859E9,
0x312541A7,
0x20C318A2,
0x31661882,
0x94715AEB,
0xCE57AD54,
0xC5D5BDF5,
0xC573D636,
0xCD91CDB3,
0xBCEFC571,
0x944EACEF,
0x3184738C,
0x9C6E836B,
0x9C2C93CB,
0x49C36265,
0xBD5228C1,
0x72A78328,
0x72A76224,
0x72867286,
0x82E77AC7,
0x82E782E7,
0x83287AE7,
0x93AA93AB,
0xA42D9C0C,
0x7C8C7C8B,
0x18C1738A,
0x396218A0,
0x20803101,
0x29002920,
0x39643101,
0x8BF06B0C,
0x83508B90,
0x7B4E8B70,
0x72EC7B6E,
0x626A5A49,
0x41875209,
0x6B0C3966,
0x947183AE,
0xD677A533,
0xCE16D656,
0xB531CDF4,
0x838B940D,
0x39C65A88,
0x20E318C2,
0xB511838B,
0x7307B4EF,
0x39625A24,
0xB4F149E5,
0x72A772C7,
0x72A76245,
0x72867286,
0x82E77AC7,
0x7AC782E7,
0x8B6A7AC7,
0x9BEC938A,
0x93EC9C0C,
0x84EE7C4C,
0x52A68CEF,
0x7BA95285,
0x31003120,
0x39412921,
0x39A43941,
0x9C128BEF,
0x9BF39BD2,
0xA4539C54,
0x93F2AC94,
0x9C739432,
0xB4B5AC94,
0x936FAC74,
0x732D624A,
0x94917BAE,
0x8C908C2F,
0x62EA8C4F,
0x316718C3,
0x4A082925,
0x7B2A5A68,
0xAC8EB4D0,
0x62457308,
0x204051E4,
0xA46F72EA,
0x72A77AC8,
0x72C76A66,
0x7AA772A7,
0x82E77AC7,
0x72868308,
0x8B4A7AA6,
0x9C0C8B6A,
0x8BCB93EC,
0x84CE7C6D,
0x8CCE84CE,
0x83CA9CEE,
0x39415203,
0x41623942,
0x29423101,
0x9C1183CE,
0xA3F2A3B1,
0xB4B5A454,
0xACB5BCF6,
0xBD16B516,
0xBCF6ACB5,
0xD578C537,
0xFF7ED5B8,
0x8615249,
0x10611082,
0x294410A2,
0x52AA4A49,
0x62A9736D,
0xA48E944E,
0x8BABC531,
0x394151E3,
0x100030E0,
0x93CC8BAC,
0x72C772C8,
0x6A4672C7,
0x7AC772A6,
0x7AC76A45,
0x7AC77AA6,
0x83497AE8,
0x93CB938A,
0x93CB9C0C,
0x848D8CAE,
0x744C746C,
0x842C6BCA,
0x49A3734A,
0x49A34983,
0x52685246,
0x7AEC5228,
0x9B6F932F,
0xA4129BF0,
0xA473AC74,
0xACB5AC94,
0xBCD5BD16,
0xC4D6BCB5,
0xEE9CDDB9,
0x39860800,
0x52486AEB,
0x734D7B8E,
0x9470734D,
0x8BCC9C6F,
0xB4CE7328,
0x498272A7,
0x41825A04,
0x10004161,
0x8BCC838C,
0x72C8834A,
0x6A665A05,
0x7AC772C7,
0x7AA772A7,
0x7AC772A7,
0x8B6A7AC7,
0x93AB834A,
0x8B6B9BED};
 

void Dly(unsigned char unit){
	do {__delay_ms(9); 
	} while(--unit != 0);} 	
	


void Write_Cmd(unsigned char CMD)
{ unsigned char i;	 
 
    CS=0;
   //	__delay_us(12);
    RS=0;
    for(i=0;i<8;i++)
     {  SCL=0;
        if(CMD&0x80) SDA=1;
       	else SDA=0;
       	SCL=1;
        CMD=CMD<<1;
     }
   	CS=1;//__delay_us(12);SCL=0;CS=0;SDA=0;
}
  
void  Write_Cmd_Data (unsigned char CMDP)
{ unsigned char i;
 
    CS=0;
   //	__delay_us(12);
    RS=1;
    for(i=0;i<8;i++)
     {  SCL=0;
        if(CMDP&0x80) SDA=1;
       	else SDA=0;
       	SCL=1;
        CMDP=CMDP<<1;
     }
   	CS=1;//return(1);//__delay_us(12);
}

void Write_Data(unsigned char DH,unsigned char DL)
{unsigned char i;	 
 
    CS=0;
   //	__delay_us(12);
    RS=1;
    for(i=0;i<8;i++)
     {  SCL=0;
        if(DH&0x80) SDA=1;
       	else SDA=0;
       	SCL=1;
        DH=DH<<1;
     }
    for(i=0;i<8;i++)
     {  SCL=0;
        if(DL&0x80) SDA=1;
       	else SDA=0;
       	SCL=1;
        DL=DL<<1;
     }
   	CS=1;//__delay_us(12);
}

///////////////////////////////////////////////////////////////
void delayms(unsigned int count){
     int i,j;   for(i=0;i<count;i++) {for(j=0;j<1000;j++); 
     }
 }

void LCD_Enter_Sleep(void) 
{ 
	Write_Cmd(0x28);    // Display off 
	Write_Cmd(0x10);    // Enter Sleep mode LCD_Enter_Sleep();LCD_Exit_Sleep();
} 
 
void LCD_Exit_Sleep(void) 
{ 
	Write_Cmd(0x11);     // Sleep out 
	delayms(500); 
	Write_Cmd(0x29);     // Display on 
} 

void ILI9341_Initial(void){	 
  RES=0;delayms(1000);RES=1;delayms(1000);RES=0;delayms(1000);RES=1;delayms(1000);
  Write_Cmd(0xEF);
  Write_Cmd_Data(0x03);
  Write_Cmd_Data(0x80);
  Write_Cmd_Data(0x02);
  Write_Cmd(0xCF);  
  Write_Cmd_Data(0x00); 
  Write_Cmd_Data(0XC1); 
  Write_Cmd_Data(0X30); 
  Write_Cmd(0xED);  
  Write_Cmd_Data(0x64); 
  Write_Cmd_Data(0x03); 
  Write_Cmd_Data(0X12); 
  Write_Cmd_Data(0X81); 
  Write_Cmd(0xE8);  
  Write_Cmd_Data(0x8a); 
  Write_Cmd_Data(0x00); 
  Write_Cmd_Data(0x78); 
  Write_Cmd(0xCB);  
  Write_Cmd_Data(0x39); 
  Write_Cmd_Data(0x2C); 
  Write_Cmd_Data(0x00); 
  Write_Cmd_Data(0x34); 
  Write_Cmd_Data(0x02); 
  Write_Cmd(0xF7);  
  Write_Cmd_Data(0x20); 
  Write_Cmd(0xEA);  
  Write_Cmd_Data(0x00); 
  Write_Cmd_Data(0x00); 
  Write_Cmd(ILI9341_PWCTR1);    //Power control 
  Write_Cmd_Data(0x19);   //VRH[5:0] 
  Write_Cmd(ILI9341_PWCTR2);    //0xC1 Power control 
  Write_Cmd_Data(0x11);   //SAP[2:0];BT[3:0] 
  Write_Cmd(ILI9341_VMCTR1);    //VCM control 
  Write_Cmd_Data(0x3d); //?????
  Write_Cmd_Data(0x2b); 
  Write_Cmd(ILI9341_VMCTR2);    //VCM control2 
  Write_Cmd_Data(0xC1);  //--
  Write_Cmd(0x36);    // Memory Access Control 
  Write_Cmd_Data(90);//Write_Cmd_Data(0x0C); //12
  Write_Cmd(ILI9341_PIXFMT);    
  Write_Cmd_Data(0x55); 
  Write_Cmd(ILI9341_FRMCTR1);    
  Write_Cmd_Data(0x00);  
  Write_Cmd_Data(0x18); 
  Write_Cmd(ILI9341_DFUNCTR);    // Display Function Control 
  Write_Cmd_Data(0x08); 
  Write_Cmd_Data(0x82);
  Write_Cmd_Data(0x27);  
  Write_Cmd(0xF2);    // 3Gamma Function Disable 
  Write_Cmd_Data(0x01); 
  Write_Cmd(ILI9341_GAMMASET);    //Gamma curve selected 
  Write_Cmd_Data(0x01); 
  Write_Cmd(ILI9341_GMCTRP1);    //Set Gamma 
	Write_Cmd_Data(0x0F); 
	Write_Cmd_Data(0x27); 
	Write_Cmd_Data(0x22); 
	Write_Cmd_Data(0x0C); 
	Write_Cmd_Data(0x11); 
	Write_Cmd_Data(0x0A); 
	Write_Cmd_Data(0x4B); 
	Write_Cmd_Data(0XBA); 
	Write_Cmd_Data(0x36); 
	Write_Cmd_Data(0x05); 
	Write_Cmd_Data(0x0A); 
	Write_Cmd_Data(0x00); 
	Write_Cmd_Data(0x13); 
	Write_Cmd_Data(0x10); 
	Write_Cmd_Data(0x00); 
    Write_Cmd(ILI9341_GMCTRN1);    
	Write_Cmd_Data(0x00); 
	Write_Cmd_Data(0x18); 
	Write_Cmd_Data(0x1D); 
	Write_Cmd_Data(0x03); 
	Write_Cmd_Data(0x0F); 
	Write_Cmd_Data(0x05); 
	Write_Cmd_Data(0x33); 
	Write_Cmd_Data(0x66); 
	Write_Cmd_Data(0x48); 
	Write_Cmd_Data(0x09); 
	Write_Cmd_Data(0x15); 
	Write_Cmd_Data(0x0F); 
	Write_Cmd_Data(0x2F); 
	Write_Cmd_Data(0x2F); 
	Write_Cmd_Data(0x0F); 
  Write_Cmd(ILI9341_SLPOUT);    //Exit Sleep  		
  Write_Cmd(ILI9341_DISPON);    //Display on 
}  

static void LCD_SetPos(unsigned char x0,unsigned char x1,unsigned int y0,unsigned int y1)
{ 
 	Write_Cmd(0x2A);
	Write_Cmd_Data(0x00);
	Write_Cmd_Data(x0 & 0xFF);
	Write_Cmd_Data (0x00);
	Write_Cmd_Data (x1);
	Write_Cmd(0x2B);
	Write_Cmd_Data (y0>>8);
	Write_Cmd_Data (y0);
	Write_Cmd_Data (y1>>8);
	Write_Cmd_Data (y1);
	Write_Cmd(0x2C);

}
 
void SetCursor (unsigned int Xpos, unsigned int Ypos)
   {
   LCD_SetPos(Ypos,Ypos,Xpos,Xpos);
   }


 
void   Write_color(unsigned int y)
{

        unsigned char m = y>>8;
        unsigned char n = y;
Write_Data(m,n);
}

void ClearScreen(unsigned int bColor){
 unsigned int i,j;LCD_SetPos(0,239,0,319); 
 for (i=0;i<320;i++)
	{for (j=0;j<240;j++)Write_color(bColor);
   }	
}
///////////////////////////////////////////////////////////////////////////////  
 void yataycizgi(unsigned int dikey, unsigned int yatay, unsigned int uzunluk,unsigned int color)
{
   int i ;
	for (i = 0; i < uzunluk; i++) {
   LCD_SetPos(dikey,dikey,yatay,yatay);
 Write_color(color);  
      yatay++; }
 }  
  
 
void set_pos(unsigned char x0,unsigned char x1,unsigned int y0,unsigned int y1)//(unsigned int x, unsigned int width,unsigned int y,unsigned int height)
{
       Write_Cmd(0x2a);
	Write_Cmd_Data(x0 >> 8);
	Write_Cmd_Data(x0 & 0xFF);     //XSTART
	Write_Cmd_Data(y0 >> 8);
	Write_Cmd_Data(y0 & 0xFF);     //XEND
	Write_Cmd(0x2b);
	Write_Cmd_Data(x1 >> 8);
	Write_Cmd_Data(x1);        //YSTART
	Write_Cmd_Data(y1>> 8);
	Write_Cmd_Data(y1);       //YEND
    Write_Cmd(0x2c);

}
 //const uint32_t    const uint16_t  bayrak
  void resim_tara(uint16_t x,uint16_t y,uint16_t yukseklik,uint16_t genislik,const uint32_t  *resim)
{
uint16_t i,j;
uint16_t *tmp = (uint16_t*)resim;
uint16_t LCD_GENISLIK=genislik;
uint16_t LCD_YUKSEKLIK=yukseklik;
    for (i=0;i<LCD_GENISLIK; i++){
    for (j=0;j<LCD_YUKSEKLIK;j++){
    
     set_pos (i+x,(LCD_YUKSEKLIK-j)+y,LCD_GENISLIK,LCD_YUKSEKLIK);
      Write_color(*tmp++);
        }
     }
}
 
 
   void  main() {     
   INTCON2bits.RBPU =1;CMCON =7;ADCON1 = 0xFF;      
   TRISA=0b00000000; TRISB =0b00000000; 
   TRISC = 0x00; TRISD = 0x00;  TRISE = 0x00;  
   PORTA=0x00;PORTB=0x00; PORTC=0x00; PORTD=0x00;PORTE=0x00;//delayms(200);  __delay_ms(8);           
   ILI9341_Initial(); 
   ClearScreen(YELLOW);  
   resim_tara(0,0,64,32,bayrak);  //32x64 piksel resim
   
   while(1){  
  
    
      } 
   }

#ifdef __cplusplus
}
#endif






SB7

#3
@serkan Cevabınız için teşekkürler sorun lcd kütüphanemdeymiş. Yabancı kaynaklardan farklı bir kütüphane ile direkt rgb değerlerini for döngüsüyle göndererek resmi basabildim. Sorun çözüldü teşekkürler.
https://www.youtube.com/watch?v=nHgM2-d4lLc
-SB7

KingSlayyer

@SB7 bende böyle bir proje üstünde çalışıyorum acaba çalıştırdığınız kodu paylaşabilir misiniz? En azından for döngüsüyle resimi basma kısmını

SB7

@KingSlayyer kullandığım kütüphane bu internette örnekleri var

#include "tm_stm32f4_ili9341_ltdc.h"

Yazdığım kod bundan ibaret. Gerekli tanımlamaları yapıp resminizi 320*240 boyutuna dönüştüreceksiniz ardından bitmap e çevireceksiniz. 76800 elemanlı bir dizi oluşturmaya dikkat edin. Çünkü iç içe yazılı for döngüleri ile 320*240=76800 adet pixelin renk datasına ihtiyacınız var.

while (1) {		
		k=0;
		for(x=0;x<320;x++)
		{
			for(y=0;y<240;y++)
			{
				TM_ILI9341_DrawPixel(y,x,bitmap[k]);
				k++;
				Delay(25);
			}
		}
	}
}

İyi çalışmalar.
-SB7

PhD

Alıntı yapılan: SB7 - 07 Şubat 2020, 20:29:27@KingSlayyer kullandığım kütüphane bu internette örnekleri var

#include "tm_stm32f4_ili9341_ltdc.h"

Tilen Majerle'nin sitesinden gerekli tüm kaynak kodları ve örnekleri bulabilirsiniz.

http://stm32f4-discovery.net/stm32f4-links/
...hiç...

KingSlayyer

@SB7 @PhD öncelikle cevaplarınız için çok teşekkür ederim.
Müsade ederseniz ben bir şey daha sormak istiyorum. Ben şuan WiFi modülü üzerinden STM32F429 kitine resim dosyası atıp o resmi lcd ekranda basmak istiyorum. bununla ilgili bilgisi olan veya tecrübesi olan var mıdır? Yardımcı olur musunuz?

PhD

Alıntı yapılan: KingSlayyer - 09 Şubat 2020, 15:53:10@SB7 @PhD öncelikle cevaplarınız için çok teşekkür ederim.
Müsade ederseniz ben bir şey daha sormak istiyorum. Ben şuan WiFi modülü üzerinden STM32F429 kitine resim dosyası atıp o resmi lcd ekranda basmak istiyorum. bununla ilgili bilgisi olan veya tecrübesi olan var mıdır? Yardımcı olur musunuz?
İkisi birbirinden farklı konular. Yani WiFi için şu anda en moda olan ESP8266 olarak araştırırsan istemediğin kadar örnek bulabilirsin. Link verdiğim yerde de hem WiFi hem de TFT konuları ile ilgili örnek bulabilirsin. Sadece iki farklı konuyu senin istediğin şekilde birleştirmek sana kalmış.

Kolay gelsin.
...hiç...

mfurkanuyar

Neden TouchGFX kullanmıyorsunuz? bunun özel bir sebebi varmı?