|
|
#include <stdio.h>
|
|
|
#include <fat32.h>
|
|
|
#include <gpio.h>
|
|
|
#include <uart.h>
|
|
|
#include <bsp.h>
|
|
|
#include <core.h>
|
|
|
#include <VS10XX.h>
|
|
|
#include <bsp.h>
|
|
|
#include <spi.h>
|
|
|
#include <sdcard.h>
|
|
|
#include <sdcard-spi.h>
|
|
|
#include <fat32.h>
|
|
|
#include <ucdirent.h>
|
|
|
#include <string.h>
|
|
|
#include <ili9328.h>
|
|
|
|
|
|
uint16_t buff[50*50];
|
|
|
|
|
|
void test_Block_Move(LCD_t* LCD,int x,int y,int w,int h,int color)
|
|
|
{
|
|
|
// LCD->paintFilRect(LCD,x,y,w,h,0,0,color);
|
|
|
}
|
|
|
int coef=1;
|
|
|
|
|
|
void test_address(LCD_t* LCD)
|
|
|
{
|
|
|
LCD->paintFilRect(LCD,0,0,LCD->width,LCD->height,0,0,0xFFFF);
|
|
|
uint16_t color[1];
|
|
|
for(int y=0;y<320;y++)
|
|
|
{
|
|
|
for(int x=0;x<240;x++)
|
|
|
{
|
|
|
color[0]=((x/10*y*x)/((y+x+1)))+coef;
|
|
|
coef = color[0];
|
|
|
LCD->paint(LCD,color,x,y,1,1);
|
|
|
//delay_100us(100);
|
|
|
}
|
|
|
}
|
|
|
LCD->getPix(LCD,buff,50,50,50,50);
|
|
|
// delay_100us(5000);
|
|
|
LCD->paint(LCD,buff,50,50,50,50);
|
|
|
delay_100us(500);
|
|
|
}
|
|
|
|